Hi
message.getContent(InputStream.class)
will get you the input stream representing the message body
Cheers. Sergey
On 06/08/14 17:07, New Groovy wrote:
Hi Sergey,
No, it's not a Filter, it's an Interceptor extending
AbstractPhaseInterceptor.
Is there no way to get access to the parameter there?
Thanks!
On Wed, Aug 6, 2014 at 3:26 AM, Sergey Beryozkin <[email protected]>
wrote:
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!