Class RemoteIpFilter.XForwardedRequest

All Implemented Interfaces:
HttpServletRequest, ServletRequest
Enclosing class:
RemoteIpFilter

public static class RemoteIpFilter.XForwardedRequest extends HttpServletRequestWrapper
Wrapper for HttpServletRequest that allows modification of headers, remote address, scheme, and other properties used by the RemoteIpFilter.
  • Field Details

    • headers

      protected final Map<String, List<String>> headers
      Map of header names to their values.
    • localName

      protected String localName
      The local name of the server.
    • localPort

      protected int localPort
      The local port of the server.
    • remoteAddr

      protected String remoteAddr
      The remote address of the client.
    • remoteHost

      protected String remoteHost
      The remote host of the client.
    • scheme

      protected String scheme
      The scheme of the request.
    • serverName

      protected String serverName
      The server name.
    • serverPort

      protected int serverPort
      The server port.
  • Constructor Details

    • XForwardedRequest

      public XForwardedRequest(HttpServletRequest request)
      Create a new XForwardedRequest wrapper.
      Parameters:
      request - the request to wrap
  • Method Details