Class XForwardedRequestWrapper
- java.lang.Object
-
- javax.servlet.ServletRequestWrapper
-
- javax.servlet.http.HttpServletRequestWrapper
-
- org.apache.wicket.protocol.http.servlet.XForwardedRequestWrapper
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
public class XForwardedRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper
See XForwardedFilter- Author:
- Juergen Donnerstag
-
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getDateHeader
in classjavax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequestWrapper.getDateHeader(java.lang.String)
-
getHeader
public String getHeader(String name)
- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getHeader
in classjavax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequestWrapper.getHeader(java.lang.String)
-
getHeaderNames
public Enumeration<String> getHeaderNames()
- Specified by:
getHeaderNames
in interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getHeaderNames
in classjavax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequestWrapper.getHeaderNames()
-
getHeaders
public Enumeration<String> getHeaders(String name)
- Specified by:
getHeaders
in interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getHeaders
in classjavax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequestWrapper.getHeaders(java.lang.String)
-
getIntHeader
public int getIntHeader(String name)
- Specified by:
getIntHeader
in interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getIntHeader
in classjavax.servlet.http.HttpServletRequestWrapper
- See Also:
HttpServletRequestWrapper.getIntHeader(java.lang.String)
-
getRemoteAddr
public String getRemoteAddr()
- Specified by:
getRemoteAddr
in interfacejavax.servlet.ServletRequest
- Overrides:
getRemoteAddr
in classjavax.servlet.ServletRequestWrapper
- See Also:
ServletRequestWrapper.getRemoteAddr()
-
getRemoteHost
public String getRemoteHost()
- Specified by:
getRemoteHost
in interfacejavax.servlet.ServletRequest
- Overrides:
getRemoteHost
in classjavax.servlet.ServletRequestWrapper
- See Also:
ServletRequestWrapper.getRemoteHost()
-
getScheme
public String getScheme()
- Specified by:
getScheme
in interfacejavax.servlet.ServletRequest
- Overrides:
getScheme
in classjavax.servlet.ServletRequestWrapper
- See Also:
ServletRequestWrapper.getScheme()
-
getServerPort
public int getServerPort()
- Specified by:
getServerPort
in interfacejavax.servlet.ServletRequest
- Overrides:
getServerPort
in classjavax.servlet.ServletRequestWrapper
- See Also:
ServletRequestWrapper.getServerPort()
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfacejavax.servlet.ServletRequest
- Overrides:
isSecure
in classjavax.servlet.ServletRequestWrapper
- See Also:
ServletRequestWrapper.isSecure()
-
removeHeader
public void removeHeader(String name)
- Parameters:
name
-
-
setRemoteAddr
public void setRemoteAddr(String remoteAddr)
- Parameters:
remoteAddr
-
-
setRemoteHost
public void setRemoteHost(String remoteHost)
- Parameters:
remoteHost
-
-
setSecure
public void setSecure(boolean secure)
- Parameters:
secure
-
-
setServerPort
public void setServerPort(int serverPort)
- Parameters:
serverPort
-
-
-