users@jersey.java.net

[Jersey] Re: Question about ContainerRequestFilter and ContainerResponseFilter

From: Joel Joseph <joe.jose2706_at_gmail.com>
Date: Thu, 01 Dec 2016 15:02:40 +0000

The altered one.

Both original and altered reference the same client request context object.

Please refer to ClientRuntime class for implementation details.

Thanks,
Joel

On Thu, Dec 1, 2016, 6:56 AM Nikolaos Beredimas <beredim_at_gmail.com> wrote:

> In an application that uses both ContainerRequestFilter and
> ContainerResponseFilter:
>
> Suppose that the filter(ContainerRequestContext crc) of the request filter
> alters the incoming request context crc
>
> So when it's time for the response filter to run, what request context crc
> does filter(ContainerRequestContext crc, ContainerResponseContext crc1) of
> the response filter see?
>
> The original one or the altered one?
>
>
>