Hi

On Wed, Aug 3, 2011 at 8:21 PM, Shelley, Ryan <[email protected]> wrote:
> Hey folks,
>
> I've got a standard servlet filter that I need to drop into a CXF JAX-RS 
> webapp.  When I plug it in and run it, I notice that CXF closes the response 
> before the filter can do anything on the response.  The flow is currently: 
> request -> container -> filter -> servlet -> close, however, the expected 
> behavior is: request -> container -> filter -> servlet -> filter -> container 
> -> close.  This prevents me from modifying the response within the filter.  I 
> tried to use a ResponseHandler but couldn't figure out how to get the 
> ServletRequest or the value of the parameters on the URL (because they are 
> instrumental in how the response is modified).  Any suggestions?  Thanks!
>
Perhaps one needs to use HttpServletResponseWrapper at the filter
level in order to intercept the moment the response is closed ?

As far as ResponseHandler is concerned: have UriInfo or ServletRequest
injected (as JAX-RS context)

HTH
Sergey


> -Ryan
>



-- 
Sergey Beryozkin

http://sberyozkin.blogspot.com
Talend - http://www.talend.com

Reply via email to