users@jersey.java.net

[Jersey] Remote address in ContainerRequest

From: Christopher Piggott <cpiggott_at_gmail.com>
Date: Thu, 13 Oct 2011 14:00:14 -0400

Hi,

I have a ContainerRequestFilter that implements authentication in a
largish jersey application. Someone has asked me to print the IP
address of the remote client in the event of an authentication filter.
 I can't figure out how to do this...

    @Override
    public ContainerRequest filter(ContainerRequest cr) {
        ... stuff ...
    }

How can I get the remote address from a ContainerRequest?

--Chris