users@jersey.java.net

[Jersey] Re: Get the IP addr associated with cinoming request

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Wed, 30 Mar 2011 13:51:45 -0700

On the Servlet container, you should be able to get
the HttpServletRequest injected:

@Context HttpServletRequest req;

and get the address from there.

Does it help you?

~Jakub

On 03/30/2011 01:19 PM, Arthur Yeo wrote:
> All,
> When servicing a request in Jersey, is there a fast way to obtain the
> IP-addr of the client?
>
> --
> Arthur Y.