Class XForwardedRequestWrapper

  • All Implemented Interfaces:
    javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

    public class XForwardedRequestWrapper
    extends javax.servlet.http.HttpServletRequestWrapper
    Author:
    Juergen Donnerstag
    • Field Summary

      • Fields inherited from interface javax.servlet.http.HttpServletRequest

        BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
    • Constructor Summary

      Constructors 
      Constructor Description
      XForwardedRequestWrapper​(javax.servlet.http.HttpServletRequest request)
      Construct.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDateHeader​(String name)  
      String getHeader​(String name)  
      Enumeration<String> getHeaderNames()  
      Enumeration<String> getHeaders​(String name)  
      int getIntHeader​(String name)  
      String getRemoteAddr()  
      String getRemoteHost()  
      String getScheme()  
      int getServerPort()  
      boolean isSecure()  
      void removeHeader​(String name)  
      void setHeader​(String name, String value)  
      void setRemoteAddr​(String remoteAddr)  
      void setRemoteHost​(String remoteHost)  
      void setScheme​(String scheme)  
      void setSecure​(boolean secure)  
      void setServerPort​(int serverPort)  
      • Methods inherited from class javax.servlet.http.HttpServletRequestWrapper

        authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
      • Methods inherited from class javax.servlet.ServletRequestWrapper

        getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemotePort, getRequest, getRequestDispatcher, getServerName, getServletContext, isAsyncStarted, isAsyncSupported, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
      • Methods inherited from interface javax.servlet.ServletRequest

        getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemotePort, getRequestDispatcher, getServerName, getServletContext, isAsyncStarted, isAsyncSupported, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
    • Constructor Detail

      • XForwardedRequestWrapper

        public XForwardedRequestWrapper​(javax.servlet.http.HttpServletRequest request)
        Construct.
        Parameters:
        request -
    • Method Detail

      • getDateHeader

        public long getDateHeader​(String name)
        Specified by:
        getDateHeader in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getDateHeader in class javax.servlet.http.HttpServletRequestWrapper
        See Also:
        HttpServletRequestWrapper.getDateHeader(java.lang.String)
      • getHeader

        public String getHeader​(String name)
        Specified by:
        getHeader in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getHeader in class javax.servlet.http.HttpServletRequestWrapper
        See Also:
        HttpServletRequestWrapper.getHeader(java.lang.String)
      • getHeaderNames

        public Enumeration<StringgetHeaderNames()
        Specified by:
        getHeaderNames in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getHeaderNames in class javax.servlet.http.HttpServletRequestWrapper
        See Also:
        HttpServletRequestWrapper.getHeaderNames()
      • getHeaders

        public Enumeration<StringgetHeaders​(String name)
        Specified by:
        getHeaders in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getHeaders in class javax.servlet.http.HttpServletRequestWrapper
        See Also:
        HttpServletRequestWrapper.getHeaders(java.lang.String)
      • getIntHeader

        public int getIntHeader​(String name)
        Specified by:
        getIntHeader in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getIntHeader in class javax.servlet.http.HttpServletRequestWrapper
        See Also:
        HttpServletRequestWrapper.getIntHeader(java.lang.String)
      • getRemoteAddr

        public String getRemoteAddr()
        Specified by:
        getRemoteAddr in interface javax.servlet.ServletRequest
        Overrides:
        getRemoteAddr in class javax.servlet.ServletRequestWrapper
        See Also:
        ServletRequestWrapper.getRemoteAddr()
      • getRemoteHost

        public String getRemoteHost()
        Specified by:
        getRemoteHost in interface javax.servlet.ServletRequest
        Overrides:
        getRemoteHost in class javax.servlet.ServletRequestWrapper
        See Also:
        ServletRequestWrapper.getRemoteHost()
      • getScheme

        public String getScheme()
        Specified by:
        getScheme in interface javax.servlet.ServletRequest
        Overrides:
        getScheme in class javax.servlet.ServletRequestWrapper
        See Also:
        ServletRequestWrapper.getScheme()
      • getServerPort

        public int getServerPort()
        Specified by:
        getServerPort in interface javax.servlet.ServletRequest
        Overrides:
        getServerPort in class javax.servlet.ServletRequestWrapper
        See Also:
        ServletRequestWrapper.getServerPort()
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface javax.servlet.ServletRequest
        Overrides:
        isSecure in class javax.servlet.ServletRequestWrapper
        See Also:
        ServletRequestWrapper.isSecure()
      • setScheme

        public void setScheme​(String scheme)
        Parameters:
        scheme -
      • setSecure

        public void setSecure​(boolean secure)
        Parameters:
        secure -
      • setServerPort

        public void setServerPort​(int serverPort)
        Parameters:
        serverPort -