eclipse-ee4j / eclipse-ee4j/jersey

Access client port and IP address from HttpRequestContext

Open
#745 7 comments 0 reactions 0 assignees View on GitHub
Component: core Priority: Major Type: Improvement
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.