cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Get JAX-RS POST parameter in Interceptor
Date Wed, 06 Aug 2014 07:26:50 GMT
Hi
On 06/08/14 06:57, New Groovy wrote:
> Hi,
>
> I have a method that receives a POST-ed parameter, so as such, it is not a
> path/query param etc.
>
> I need to access it in an In-Interceptor, but am struggling to retrieve
> it.  I get the path/query ones from the UriInfo object, but can't figure
> out how to get the unnamed one.
>
Do you implement ContainerRequestFilter ? If so ContainerRequestContext 
(passed as a parameter to the filter) has a method like 
getEntityStream() or similar. Make sure to replace the stream if you 
expect it be read by the service later on

Cheers, Sergey
> Would appreciate some pointers.
>
> Thanks!
>


Mime
View raw message