You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2018. It is now read-only.
mikaelstaldal said:
In the context of JAX-RS 2 and Jersey 2, It would make sense to add a method for this to javax.ws.rs.core.Request. Perhaps something for JAX-RS 2.1?
In the meantime, it can be added to org.glassfish.jersey.server.ContainerRequest
mpierce said:
For resources, it's possible to work around this by injecting HttpServletRequest or equivalent. However, I need to access the IP inside an event listener. Any thoughts on what workarounds are feasible there?
Currently the only way to obtain the client IP address and port is by injecting
HttpServletRequest.
We need to support a method on HttpRequestContext implementations of which can
defer to Servlet or say the low-level Grizzly API.
Low-level Grizzly request has:
request.remoteAddr().toString();
request.getRemotePort();
Environment
Operating System: All
Platform: Macintosh
The text was updated successfully, but these errors were encountered: