public class SPFormAuthenticationRequestWrapper extends HttpServletRequestWrapper
ServletRequest.getParameter.
In case origin getParameter() method returns null and there is a not null instance of {@see FormData), wrapper returns data from FormData instead.
Wrapper is a part of the fix of JBEAP-10449.BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Constructor and Description |
|---|
SPFormAuthenticationRequestWrapper(HttpServletRequest request,
FormData formData) |
| Modifier and Type | Method and Description |
|---|---|
String |
getParameter(String name)
The default behavior of this method is to return
getParameter(String name) on the wrapped request object.
|
Map<String,String[]> |
getParameterMap()
The default behavior of this method is to return getParameterMap()
on the wrapped request object.
|
Enumeration<String> |
getParameterNames()
The default behavior of this method is to return getParameterNames()
on the wrapped request object.
|
String[] |
getParameterValues(String name)
The default behavior of this method is to return
getParameterValues(String name) on the wrapped request object.
|
Part |
getPart(String name)
The default behavior of this method is to call getPart on the wrapped
request object.
|
Collection<Part> |
getParts()
The default behavior of this method is to call getParts on the wrapped
request object.
|
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, 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, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic SPFormAuthenticationRequestWrapper(HttpServletRequest request, FormData formData)
public String getParameter(String name)
ServletRequestWrappergetParameter in interface ServletRequestgetParameter in class ServletRequestWrappername - a String specifying the name of the parameterString representing the single value of
the parameterServletRequest.getParameterValues(java.lang.String)public String[] getParameterValues(String name)
ServletRequestWrappergetParameterValues in interface ServletRequestgetParameterValues in class ServletRequestWrappername - a String containing the name of
the parameter whose value is requestedString objects
containing the parameter's valuesServletRequest.getParameter(java.lang.String)public Map<String,String[]> getParameterMap()
ServletRequestWrappergetParameterMap in interface ServletRequestgetParameterMap in class ServletRequestWrapperpublic Enumeration<String> getParameterNames()
ServletRequestWrappergetParameterNames in interface ServletRequestgetParameterNames in class ServletRequestWrapperEnumeration of String
objects, each String containing the name of
a request parameter; or an empty Enumeration
if the request has no parameterspublic Part getPart(String name) throws IOException, ServletException
HttpServletRequestWrappergetPart in interface HttpServletRequestgetPart in class HttpServletRequestWrappername - the name of the requested PartPart with the given name, or
null if this request is of type
multipart/form-data, but does not
contain the requested PartIOException - if an I/O error occurred during the retrieval
of the requested PartServletException - if this request is not of type
multipart/form-dataMultipartConfig.maxFileSize(),
MultipartConfig.maxRequestSize()public Collection<Part> getParts() throws IOException, ServletException
HttpServletRequestWrapperAny changes to the returned Collection must not
affect this HttpServletRequestWrapper.
getParts in interface HttpServletRequestgetParts in class HttpServletRequestWrapperCollection of the
Part components of this requestIOException - if an I/O error occurred during the retrieval
of the Part components of this requestServletException - if this request is not of type
multipart/form-dataMultipartConfig.maxFileSize(),
MultipartConfig.maxRequestSize()Copyright © 2019 JBoss by Red Hat. All rights reserved.