Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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