public final class HttpRequestModifyWrapper
extends javax.servlet.http.HttpServletRequestWrapper
Constructor and Description |
---|
HttpRequestModifyWrapper(javax.servlet.http.HttpServletRequest servletRequest)
Build the hashmap for init param and Returns an array of String objects containing all of the values the given
request parameter has, or null if the parameter does not exist.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameter(java.lang.String parameter)
Returns the value of a request parameter as a String, or null if the parameter does not exist.
|
java.lang.String[] |
getParameterValues(java.lang.String parameter)
Returns an array of String objects containing all of the values the given request parameter has, or null if the
parameter does not exist.
|
java.lang.String |
securitySafeWithHTMLEncoding(java.lang.String aText)
Returns the cross site vulnerability safe value of a request parameter
|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, 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, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
public HttpRequestModifyWrapper(javax.servlet.http.HttpServletRequest servletRequest)
a
- String containing the name of the parameter whose value is requestedpublic java.lang.String[] getParameterValues(java.lang.String parameter)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
name
- a String containing the name of the parameter whose value is requestedpublic java.lang.String getParameter(java.lang.String parameter)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
name
- a String specifying the name of the parameterpublic java.lang.String securitySafeWithHTMLEncoding(java.lang.String aText)
aText
- a String specifying the value to check