public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpServletRequest
Modifier and Type | Class and Description |
---|---|
private static class |
StandardMultipartHttpServletRequest.StandardMultipartFile
Spring MultipartFile adapter, wrapping a Servlet 3.0 Part object.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CONTENT_DISPOSITION |
private static java.lang.String |
FILENAME_KEY |
Constructor and Description |
---|
StandardMultipartHttpServletRequest(HttpServletRequest request)
Create a new StandardMultipartHttpServletRequest wrapper for the given request.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
extractFilename(java.lang.String contentDisposition) |
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.
|
getFile, getFileMap, getFileNames, getFiles, getMultiFileMap, getMultipartFiles, getRequest, getRequestHeaders, getRequestMethod, initializeMultipart, setMultipartFiles
private static final java.lang.String CONTENT_DISPOSITION
private static final java.lang.String FILENAME_KEY
public StandardMultipartHttpServletRequest(HttpServletRequest request) throws MultipartException
request
- the servlet request to wrapMultipartException
- if parsing failedprivate java.lang.String extractFilename(java.lang.String contentDisposition)
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.