Hi Malintha,

You can access the `Request` instance from the interceptors. You also can
access the same Request instance from the HTTP resource by injecting the
request to the HTTP method (`@Context Request request`). You also can set
any argument in the request using `request.setProperty(String key, Object
value)` method and retrieve the value using `request.getProperty(String
key)` method. Will this be sufficient for your requirement?



On Mon, Feb 27, 2017 at 5:55 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Malintha,
>
> Thank you very much for the PR. We did some restructuring for the
> interceptors to cater product requirementsts[1]. Therefore we won't be able
> to directly merge this. But surely we will check what we can do with this.
>
> [1] - https://github.com/wso2/msf4j/pull/338
>
> Thanks
> Thusitha
>
> On Sun, Feb 26, 2017 at 4:04 PM, Malintha Amarasinghe <malint...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Currently in MSF4J Interceptor level, we can get the HTTP handler method
>> which would be invoked by calling  serviceMethodInfo.getMethod().
>>
>> Additionally, It will be useful to have request parameters as well in
>> order to perform various types of request validations in Interceptor level
>> such as Bean validation and ETag validation.
>>
>> Tried to do a fix which adds a new field to ServiceMethodInfo class as
>> args[] [1]. But this required some API changes.
>>
>> Thanks!
>>
>> [1] https://github.com/wso2/msf4j/pull/356
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306P
>>
>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
> <http://wso2.com/signature>
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Vidura Nanayakkara*
Software Engineer

Email : vidu...@wso2.com
Mobile : +94 (0) 717 919277
Web : http://wso2.com
Blog : https://medium.com/@viduran <http://wso2.com/>
Twitter : http://twitter.com/viduranana
LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara <http://wso2.com/>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to