public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpServletRequest
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 |
|---|---|
String |
getMultipartContentType(String paramOrFileName)
Determine the content type of the specified request part.
|
HttpHeaders |
getMultipartHeaders(String paramOrFileName)
Return the headers associated with the specified part of the multipart request.
|
Map<String,String[]> |
getParameterMap() |
Enumeration<String> |
getParameterNames() |
protected void |
initializeMultipart()
Lazily initialize the multipart request, if possible.
|
getFile, getFileMap, getFileNames, getFiles, getMultiFileMap, getMultipartFiles, getRequest, getRequestHeaders, getRequestMethod, setMultipartFilesauthenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, 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, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, 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, startAsyncpublic 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 initializeMultipart()
AbstractMultipartHttpServletRequestinitializeMultipart in class AbstractMultipartHttpServletRequestpublic Enumeration<String> getParameterNames()
getParameterNames in interface ServletRequestgetParameterNames in class ServletRequestWrapperpublic Map<String,String[]> getParameterMap()
getParameterMap in interface ServletRequestgetParameterMap in class ServletRequestWrapperpublic String getMultipartContentType(String paramOrFileName)
MultipartRequestparamOrFileName - the name of the partnull if not definedpublic HttpHeaders getMultipartHeaders(String paramOrFileName)
MultipartHttpServletRequestIf 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.