public interface MultipartRequest extends HttpRequest
This interface defines the multipart request access operations that are exposed for actual multipart requests.
Created by Zhenjie Yan on 2018/6/21.SESSION_NAMEANDROID_CONTEXT, HTTP_MESSAGE_CONVERTER, REQUEST_CREATED_SESSION, RESPONSE_PRODUCE_TYPEACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_RANGES, Access_Control_Allow_Credentials, Access_Control_Allow_Headers, Access_Control_Allow_Methods, Access_Control_Allow_Origin, Access_Control_Expose_Headers, Access_Control_Max_Age, Access_Control_Request_Headers, Access_Control_Request_Method, AGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONNECTION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TYPE, COOKIE, DATE, DAV, DEPTH, DESTINATION, ETAG, EXPECT, EXPIRES, FROM, HOST, IF, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LOCATION, LOCK_TOKEN, MAX_FORWARDS, ORIGIN, OVERWRITE, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, RETRY_AFTER, SERVER, SET_COOKIE, STATUS_URI, TE, TIMEOUT, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, WARNING, WWW_AUTHENTICATE| Modifier and Type | Method and Description |
|---|---|
MultipartFile |
getFile(java.lang.String name)
Return the contents plus description of an uploaded file in this request, or null if it does not exist.
|
java.util.Map<java.lang.String,MultipartFile> |
getFileMap()
Return a
Map of the multipart files contained in this request. |
java.util.Iterator<java.lang.String> |
getFileNames()
Return an
Iterator of String objects containing the parameter names of the multipart files
contained in this request. |
java.util.List<MultipartFile> |
getFiles(java.lang.String name)
Return the contents plus description of uploaded files in this request, or an empty list if it does not exist.
|
MultiValueMap<java.lang.String,MultipartFile> |
getMultiFileMap()
Return a
MultiValueMap of the multipart files contained in this request. |
java.lang.String |
getMultipartContentType(java.lang.String paramOrFileName)
Determine the content type of the specified request part.
|
changeSessionId, getAccept, getAcceptLanguage, getAcceptLanguages, getAccepts, getBody, getContentLength, getContentType, getContext, getCookie, getCookies, getCookieValue, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getLocalAddr, getLocalName, getLocalPort, getMethod, getParameter, getParameter, getParameterNames, getParameters, getPath, getQueries, getQuery, getQuery, getQueryNames, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getSession, getURI, getValidSession, isSessionValidgetAttribute, removeAttribute, setAttributejava.util.Iterator<java.lang.String> getFileNames()
Return an Iterator of String objects containing the parameter names of the multipart files
contained in this request. These are the field names of the form (like with normal parameters), not the original
file names.
MultipartFile getFile(java.lang.String name)
name - parameter name.MultipartFile object.java.util.List<MultipartFile> getFiles(java.lang.String name)
name - parameter name.MultipartFile list.java.util.Map<java.lang.String,MultipartFile> getFileMap()
Map of the multipart files contained in this request.MultipartFile objects as values.MultiValueMap<java.lang.String,MultipartFile> getMultiFileMap()
MultiValueMap of the multipart files contained in this request.MultipartFile objects as values.java.lang.String getMultipartContentType(java.lang.String paramOrFileName)
paramOrFileName - the name of the part.