public static class RemoteIpFilter.XForwardedRequest extends HttpServletRequestWrapper
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String>> |
headers |
protected String |
localName |
protected int |
localPort |
protected String |
remoteAddr |
protected String |
remoteHost |
protected String |
scheme |
protected boolean |
secure |
protected String |
serverName |
protected int |
serverPort |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Constructor and Description |
|---|
RemoteIpFilter.XForwardedRequest(HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDateHeader(String name)
The default behavior of this method is to return getDateHeader(String
name) on the wrapped request object.
|
String |
getHeader(String name)
The default behavior of this method is to return getHeader(String name)
on the wrapped request object.
|
protected Map.Entry<String,List<String>> |
getHeaderEntry(String name) |
Enumeration<String> |
getHeaderNames()
The default behavior of this method is to return getHeaderNames() on the
wrapped request object.
|
Enumeration<String> |
getHeaders(String name)
The default behavior of this method is to return getHeaders(String name)
on the wrapped request object.
|
int |
getIntHeader(String name)
The default behavior of this method is to return getIntHeader(String
name) on the wrapped request object.
|
String |
getLocalName()
The default behavior of this method is to return getLocalName() on the
wrapped request object.
|
int |
getLocalPort()
The default behavior of this method is to return getLocalPort() on the
wrapped request object.
|
String |
getRemoteAddr()
The default behavior of this method is to return getRemoteAddr() on the
wrapped request object.
|
String |
getRemoteHost()
The default behavior of this method is to return getRemoteHost() on the
wrapped request object.
|
StringBuffer |
getRequestURL()
The default behavior of this method is to return getRequestURL() on the
wrapped request object.
|
String |
getScheme()
The default behavior of this method is to return getScheme() on the
wrapped request object.
|
String |
getServerName()
The default behavior of this method is to return getServerName() on the
wrapped request object.
|
int |
getServerPort()
The default behavior of this method is to return getServerPort() on the
wrapped request object.
|
boolean |
isSecure()
The default behavior of this method is to return isSecure() on the
wrapped request object.
|
void |
removeHeader(String name) |
void |
setHeader(String name,
String value) |
void |
setLocalName(String localName) |
void |
setLocalPort(int localPort) |
void |
setRemoteAddr(String remoteAddr) |
void |
setRemoteHost(String remoteHost) |
void |
setScheme(String scheme) |
void |
setSecure(boolean secure) |
void |
setServerName(String serverName) |
void |
setServerPort(int serverPort) |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemotePort, getRequest, getRequestDispatcher, getServletContext, isAsyncStarted, isAsyncSupported, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemotePort, getRequestDispatcher, getServletContext, isAsyncStarted, isAsyncSupported, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncprotected String localName
protected int localPort
protected String remoteAddr
protected String remoteHost
protected String scheme
protected boolean secure
protected String serverName
protected int serverPort
public RemoteIpFilter.XForwardedRequest(HttpServletRequest request)
public long getDateHeader(String name)
javax.servlet.http.HttpServletRequestWrappergetDateHeader in interface HttpServletRequestgetDateHeader in class HttpServletRequestWrappername - a String specifying the name of the headerlong value representing the date specified in the
header expressed as the number of milliseconds since January 1,
1970 GMT, or -1 if the named header was not included with the
requestpublic String getHeader(String name)
javax.servlet.http.HttpServletRequestWrappergetHeader in interface HttpServletRequestgetHeader in class HttpServletRequestWrappername - a String specifying the header nameString containing the value of the requested
header, or null if the request does not have a
header of that namepublic Enumeration<String> getHeaderNames()
javax.servlet.http.HttpServletRequestWrappergetHeaderNames in interface HttpServletRequestgetHeaderNames in class HttpServletRequestWrappernullpublic Enumeration<String> getHeaders(String name)
javax.servlet.http.HttpServletRequestWrappergetHeaders in interface HttpServletRequestgetHeaders in class HttpServletRequestWrappername - a String specifying the header nameEnumeration containing the values of the requested
header. If the request does not have any headers of that name
return an empty enumeration. If the container does not allow
access to header information, return nullpublic int getIntHeader(String name)
javax.servlet.http.HttpServletRequestWrappergetIntHeader in interface HttpServletRequestgetIntHeader in class HttpServletRequestWrappername - a String specifying the name of a request headerpublic String getLocalName()
javax.servlet.ServletRequestWrappergetLocalName in interface ServletRequestgetLocalName in class ServletRequestWrapperString containing the host name of the IP on which
the request was received.public int getLocalPort()
javax.servlet.ServletRequestWrappergetLocalPort in interface ServletRequestgetLocalPort in class ServletRequestWrapperpublic String getRemoteAddr()
javax.servlet.ServletRequestWrappergetRemoteAddr in interface ServletRequestgetRemoteAddr in class ServletRequestWrapperString containing the IP address of the client
that sent the requestpublic String getRemoteHost()
javax.servlet.ServletRequestWrappergetRemoteHost in interface ServletRequestgetRemoteHost in class ServletRequestWrapperString containing the fully qualified name of the
clientpublic String getScheme()
javax.servlet.ServletRequestWrappergetScheme in interface ServletRequestgetScheme in class ServletRequestWrapperString containing the name of the scheme used to
make this requestpublic String getServerName()
javax.servlet.ServletRequestWrappergetServerName in interface ServletRequestgetServerName in class ServletRequestWrapperString containing the name of the serverpublic int getServerPort()
javax.servlet.ServletRequestWrappergetServerPort in interface ServletRequestgetServerPort in class ServletRequestWrapperpublic boolean isSecure()
javax.servlet.ServletRequestWrapperisSecure in interface ServletRequestisSecure in class ServletRequestWrapperpublic void removeHeader(String name)
public void setLocalName(String localName)
public void setLocalPort(int localPort)
public void setRemoteAddr(String remoteAddr)
public void setRemoteHost(String remoteHost)
public void setScheme(String scheme)
public void setSecure(boolean secure)
public void setServerName(String serverName)
public void setServerPort(int serverPort)
public StringBuffer getRequestURL()
javax.servlet.http.HttpServletRequestWrappergetRequestURL in interface HttpServletRequestgetRequestURL in class HttpServletRequestWrapperStringBuffer object containing the reconstructed
URLCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.