public class HttpServletRequestFilterable
extends javax.servlet.http.HttpServletRequestWrapper
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
exclusionsHeaders
The HTTP Headers that will be removed when filtering is enabled.
|
| Constructor and Description |
|---|
HttpServletRequestFilterable(javax.servlet.http.HttpServletRequest httpServletRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExclusion(String header)
This method will add the header name to the list of headers to be filtered.
|
long |
getDateHeader(String header) |
String |
getHeader(String header)
This customized version of HttpServletRequest#getHeader(String) returns
null for any HTTP header that is being filtered out.
|
protected boolean |
isExcluded(String header)
This method checks to see if the header name is within
the exclusion list.
|
protected String |
normalize(String header) |
getAuthType, getContextPath, getCookies, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncodingpublic HttpServletRequestFilterable(javax.servlet.http.HttpServletRequest httpServletRequest)
HttpServletRequestWrapper.HttpServletRequestWrapper(HttpServletRequest)public String getHeader(String header)
getHeader in interface javax.servlet.http.HttpServletRequestgetHeader in class javax.servlet.http.HttpServletRequestWrapperheader - The HTTP header name.public long getDateHeader(String header)
getDateHeader in interface javax.servlet.http.HttpServletRequestgetDateHeader in class javax.servlet.http.HttpServletRequestWrapperprotected boolean isExcluded(String header)
header - The header name to check if it's excluded.public void addExclusion(String header)
header - The header name to be excluded.Copyright © 2015. All Rights Reserved.