users@jersey.java.net

Re: [Jersey] jax-rs - host ip ?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 28 Jul 2009 14:54:25 +0200

On Jul 28, 2009, at 2:24 PM, jp wrote:

> Hi,
>
> I'm using netbeans 6.7, I have an app. that publish some REST web
> service, I would like to known if there is a way to known which host
> ip
> is invoking the web service.
>

Inject the HttpServletRequest e.g.:

   @Context HttpServletRequest hsr.


> I'm evaluating put some security on my web services ... some ideas ?
> or
> advices ?

What do you want to do?

Paul.