public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpServletRequest
StandardServletMultipartResolver
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
StandardMultipartHttpServletRequest(HttpServletRequest request)
Create a new StandardMultipartHttpServletRequest wrapper for the given request,
immediately parsing the multipart content.
|
StandardMultipartHttpServletRequest(HttpServletRequest request,
boolean lazyParsing)
Create a new StandardMultipartHttpServletRequest wrapper for the given request.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMultipartContentType(java.lang.String paramOrFileName)
Determine the content type of the specified request part.
|
HttpHeaders |
getMultipartHeaders(java.lang.String paramOrFileName)
Return the headers associated with the specified part of the multipart request.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap()
The default behavior of this method is to return getParameterMap()
on the wrapped request object.
|
java.util.Enumeration<java.lang.String> |
getParameterNames()
The default behavior of this method is to return getParameterNames()
on the wrapped request object.
|
protected void |
handleParseFailure(java.lang.Throwable ex) |
protected void |
initializeMultipart()
Lazily initialize the multipart request, if possible.
|
getFile, getFileMap, getFileNames, getFiles, getMultiFileMap, getMultipartFiles, getRequest, getRequestHeaders, getRequestMethod, isResolved, setMultipartFiles
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, 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, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, 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
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, 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, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public StandardMultipartHttpServletRequest(HttpServletRequest request) throws MultipartException
request
- the servlet request to wrapMultipartException
- if parsing failedpublic StandardMultipartHttpServletRequest(HttpServletRequest request, boolean lazyParsing) throws MultipartException
request
- the servlet request to wraplazyParsing
- whether multipart parsing should be triggered lazily on
first access of multipart files or parametersMultipartException
- if an immediate parsing attempt failedprotected void handleParseFailure(java.lang.Throwable ex)
protected void initializeMultipart()
AbstractMultipartHttpServletRequest
initializeMultipart
in class AbstractMultipartHttpServletRequest
public java.util.Enumeration<java.lang.String> getParameterNames()
javax.servlet.ServletRequestWrapper
getParameterNames
in interface ServletRequest
getParameterNames
in class ServletRequestWrapper
Enumeration
of String
objects, each String
containing the name of
a request parameter; or an empty Enumeration
if the request has no parameterspublic java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
javax.servlet.ServletRequestWrapper
getParameterMap
in interface ServletRequest
getParameterMap
in class ServletRequestWrapper
public java.lang.String getMultipartContentType(java.lang.String paramOrFileName)
MultipartRequest
paramOrFileName
- the name of the partnull
if not definedpublic HttpHeaders getMultipartHeaders(java.lang.String paramOrFileName)
MultipartHttpServletRequest
If the underlying implementation supports access to headers, then all headers are returned. Otherwise, the returned headers will include a 'Content-Type' header at the very least.