You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Allan C." <al...@gmail.com> on 2016/10/08 01:45:33 UTC

HttpServletRequest thread safety

Hi all,

I have a jaxrs with a DynamicFeature provider, registering a
ContainerRequestFilter in it. Inside the ContainerRequestFilter class, I
have a HttpServletRequest injected using the @Context annotation.

Is the HttpServletRequest object thread safe?

What I would like to achieve is log the remote IP of the incoming request.

Regards,
Allan C.

Re: HttpServletRequest thread safety

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

Yes, this is a thread safe proxy.

Cheers, Sergey
On 08/10/16 02:45, Allan C. wrote:
> Hi all,
>
> I have a jaxrs with a DynamicFeature provider, registering a
> ContainerRequestFilter in it. Inside the ContainerRequestFilter class, I
> have a HttpServletRequest injected using the @Context annotation.
>
> Is the HttpServletRequest object thread safe?
>
> What I would like to achieve is log the remote IP of the incoming request.
>
> Regards,
> Allan C.
>