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, isUserInRolegetAttribute, 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, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, 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, setCharacterEncodingpublic 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.ServletRequestgetParameterValues in class javax.servlet.ServletRequestWrappername - 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.ServletRequestgetParameter in class javax.servlet.ServletRequestWrappername - a String specifying the name of the parameterpublic java.lang.String securitySafeWithHTMLEncoding(java.lang.String aText)
aText - a String specifying the value to check