public static class RemoteIpFilter.XForwardedRequest extends HttpServletRequestWrapper
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String>> |
headers |
protected int |
localPort |
protected String |
remoteAddr |
protected String |
remoteHost |
protected String |
scheme |
protected boolean |
secure |
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.
|
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.
|
String |
getScheme()
The default behavior of this method is to return getScheme() 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 |
setLocalPort(int localPort) |
void |
setRemoteAddr(String remoteAddr) |
void |
setRemoteHost(String remoteHost) |
void |
setScheme(String scheme) |
void |
setSecure(boolean secure) |
void |
setServerPort(int serverPort) |
authenticate, getAuthType, getContextPath, getCookies, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logoutgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemotePort, getRequest, getRequestDispatcher, getServerName, 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, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemotePort, getRequestDispatcher, getServerName, getServletContext, isAsyncStarted, isAsyncSupported, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncprotected int localPort
protected String remoteAddr
protected String remoteHost
protected String scheme
protected boolean secure
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 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 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 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 setServerPort(int serverPort)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.