users@jersey.java.net

How to get Remote IP address/hostname in JAX-RS

From: <peter_yeung__at_hotmail.com>
Date: Sun, 24 May 2009 22:08:16 +0200

hi

When terminating the REST interface JAX-RS on the server-side,
I need to get the Remote IP address/hostname (the client IP address)
 in Servlet I can use String ipaddr = req.getRemoteAddr()
But how can I do simularthing with JAX-RS/Jersey?

Any help would be much appreciated!

Thanks,
Peter Yeung