public class XssHttpServletRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
| 构造器和说明 |
|---|
XssHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest servletRequest) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getAttribute(String name)
获取request的属性时,做xss过滤
|
String |
getHeader(String name) |
javax.servlet.ServletInputStream |
getInputStream() |
String |
getParameter(String parameter) |
String[] |
getParameterValues(String parameter) |
String |
inputHandlers(javax.servlet.ServletInputStream servletInputStream) |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic XssHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest servletRequest)
public String[] getParameterValues(String parameter)
getParameterValues 在接口中 javax.servlet.ServletRequestgetParameterValues 在类中 javax.servlet.ServletRequestWrapperpublic String getParameter(String parameter)
getParameter 在接口中 javax.servlet.ServletRequestgetParameter 在类中 javax.servlet.ServletRequestWrapperpublic Object getAttribute(String name)
getAttribute 在接口中 javax.servlet.ServletRequestgetAttribute 在类中 javax.servlet.ServletRequestWrapperpublic String getHeader(String name)
getHeader 在接口中 javax.servlet.http.HttpServletRequestgetHeader 在类中 javax.servlet.http.HttpServletRequestWrapperpublic javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream 在接口中 javax.servlet.ServletRequestgetInputStream 在类中 javax.servlet.ServletRequestWrapperIOExceptionpublic String inputHandlers(javax.servlet.ServletInputStream servletInputStream)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.