public class WafRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
Constructor and Description |
---|
WafRequestWrapper(javax.servlet.http.HttpServletRequest request) |
WafRequestWrapper(javax.servlet.http.HttpServletRequest request,
boolean filterXSS,
boolean filterSQL) |
Modifier and Type | Method and Description |
---|---|
protected String[] |
filterEntryString(String[] rawValue) |
protected String |
filterParamString(String rawValue) |
javax.servlet.http.Cookie[] |
getCookies() |
String |
getHeader(String name) |
String |
getParameter(String parameter) |
Map |
getParameterMap() |
String[] |
getParameterValues(String parameter) |
authenticate, changeSessionId, getAuthType, getContextPath, getDateHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public WafRequestWrapper(javax.servlet.http.HttpServletRequest request, boolean filterXSS, boolean filterSQL)
public WafRequestWrapper(javax.servlet.http.HttpServletRequest request)
public String[] getParameterValues(String parameter)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
parameter
- 过滤参数public Map getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
public String getParameter(String parameter)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
parameter
- 过滤参数public String getHeader(String name)
getHeader
in interface javax.servlet.http.HttpServletRequest
getHeader
in class javax.servlet.http.HttpServletRequestWrapper
name
- 过滤内容public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface javax.servlet.http.HttpServletRequest
getCookies
in class javax.servlet.http.HttpServletRequestWrapper
Copyright © 2018. All rights reserved.