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, isUserInRole
getAttribute, 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, setRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, 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, setCharacterEncoding
public HttpServletRequestFilterable(javax.servlet.http.HttpServletRequest httpServletRequest)
HttpServletRequestWrapper.HttpServletRequestWrapper(HttpServletRequest)
public String getHeader(String header)
getHeader
in interface javax.servlet.http.HttpServletRequest
getHeader
in class javax.servlet.http.HttpServletRequestWrapper
header
- The HTTP header name.public long getDateHeader(String header)
getDateHeader
in interface javax.servlet.http.HttpServletRequest
getDateHeader
in class javax.servlet.http.HttpServletRequestWrapper
protected 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.