Class RequestUtils
java.lang.Object
com.yahoo.jdisc.http.server.jetty.RequestUtils
- Author:
- bjorncs
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jetty.io.Connection
getConnection
(org.eclipse.jetty.server.Request request) static com.yahoo.jdisc.http.server.jetty.JDiscServerConnector
getConnector
(org.eclipse.jetty.server.Request request) static int
getConnectorLocalPort
(org.eclipse.jetty.server.Request request) Note:ServletRequest.getLocalPort()
may return the local port of the load balancer / reverse proxy if proxy-protocol is enabled.
-
Field Details
-
JDISC_REQUEST_X509CERT
- See Also:
-
JDISC_REQUEST_CHAIN
- See Also:
-
JDISC_RESPONSE_CHAIN
- See Also:
-
SERVLET_REQUEST_X509CERT
- See Also:
-
-
Method Details
-
getConnection
public static org.eclipse.jetty.io.Connection getConnection(org.eclipse.jetty.server.Request request) -
getConnector
public static com.yahoo.jdisc.http.server.jetty.JDiscServerConnector getConnector(org.eclipse.jetty.server.Request request) -
getConnectorLocalPort
public static int getConnectorLocalPort(org.eclipse.jetty.server.Request request) Note:ServletRequest.getLocalPort()
may return the local port of the load balancer / reverse proxy if proxy-protocol is enabled.- Returns:
- the actual local port of the underlying Jetty connector
-