Package com.yahoo.jdisc.http.core
Class HttpServletRequestUtils
- java.lang.Object
-
- com.yahoo.jdisc.http.core.HttpServletRequestUtils
-
public class HttpServletRequestUtils extends java.lang.Object
- Author:
- bjorncs
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.jetty.server.HttpConnection
getConnection(javax.servlet.http.HttpServletRequest request)
static int
getConnectorLocalPort(javax.servlet.http.HttpServletRequest request)
Note:ServletRequest.getLocalPort()
may return the local port of the load balancer / reverse proxy if proxy-protocol is enabled.
-
-
-
Method Detail
-
getConnection
public static org.eclipse.jetty.server.HttpConnection getConnection(javax.servlet.http.HttpServletRequest request)
-
getConnectorLocalPort
public static int getConnectorLocalPort(javax.servlet.http.HttpServletRequest 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
-
-