Interface MultipartRequest
- All Known Subinterfaces:
- MultipartHttpServletRequest
- All Known Implementing Classes:
- AbstractMultipartHttpServletRequest,- DefaultMultipartHttpServletRequest,- MockMultipartHttpServletRequest,- StandardMultipartHttpServletRequest
public interface MultipartRequest
This interface defines the multipart request access operations that are exposed
 for actual multipart requests. It is extended by 
MultipartHttpServletRequest.- Since:
- 2.5.2
- Author:
- Juergen Hoeller, Arjen Poutsma
- 
Method SummaryModifier and TypeMethodDescriptionReturn the contents plus description of an uploaded file in this request, ornullif it does not exist.Return aMapof the multipart files contained in this request.Return anIteratorof String objects containing the parameter names of the multipart files contained in this request.Return the contents plus description of uploaded files in this request, or an empty list if it does not exist.Return aMultiValueMapof the multipart files contained in this request.getMultipartContentType(String paramOrFileName) Determine the content type of the specified request part.
- 
Method Details- 
getFileNamesReturn anIteratorof 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.- Returns:
- the names of the files
 
- 
getFileReturn the contents plus description of an uploaded file in this request, ornullif it does not exist.- Parameters:
- name- a String specifying the parameter name of the multipart file
- Returns:
- the uploaded content in the form of a MultipartFileobject
 
- 
getFilesReturn the contents plus description of uploaded files in this request, or an empty list if it does not exist.- Parameters:
- name- a String specifying the parameter name of the multipart file
- Returns:
- the uploaded content in the form of a MultipartFilelist
- Since:
- 3.0
 
- 
getFileMapMap<String,MultipartFile> getFileMap()Return aMapof the multipart files contained in this request.- Returns:
- a map containing the parameter names as keys, and the
 MultipartFileobjects as values
 
- 
getMultiFileMapMultiValueMap<String,MultipartFile> getMultiFileMap()Return aMultiValueMapof the multipart files contained in this request.- Returns:
- a map containing the parameter names as keys, and a list of
 MultipartFileobjects as values
- Since:
- 3.0
 
- 
getMultipartContentTypeDetermine the content type of the specified request part.- Parameters:
- paramOrFileName- the name of the part
- Returns:
- the associated content type, or nullif not defined
- Since:
- 3.1
 
 
-