Package | Description |
---|---|
org.springframework.mock.web |
A comprehensive set of Servlet API 3.0 mock objects,
targeted at usage with Spring's Web MVC framework.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.multipart |
Multipart resolution framework for handling file uploads.
|
org.springframework.web.multipart.commons |
MultipartResolver implementation for
Apache Commons FileUpload.
|
org.springframework.web.multipart.support |
Support classes for the multipart resolution framework.
|
Modifier and Type | Class and Description |
---|---|
class |
MockMultipartFile
Mock implementation of the
MultipartFile
interface. |
Modifier and Type | Method and Description |
---|---|
MultipartFile |
MockMultipartHttpServletRequest.getFile(String name) |
Modifier and Type | Method and Description |
---|---|
Map<String,MultipartFile> |
MockMultipartHttpServletRequest.getFileMap() |
List<MultipartFile> |
MockMultipartHttpServletRequest.getFiles(String name) |
MultiValueMap<String,MultipartFile> |
MockMultipartHttpServletRequest.getMultiFileMap() |
Modifier and Type | Method and Description |
---|---|
void |
MockMultipartHttpServletRequest.addFile(MultipartFile file)
Add a file to this request.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WebDataBinder.bindMultipart(Map<String,List<MultipartFile>> multipartFiles,
MutablePropertyValues mpvs)
Bind all multipart files contained in the given request, if any
(in case of a multipart request).
|
Modifier and Type | Method and Description |
---|---|
MultipartFile |
MultipartRequest.getFile(String name)
Return the contents plus description of an uploaded file in this request,
or
null if it does not exist. |
Modifier and Type | Method and Description |
---|---|
Map<String,MultipartFile> |
MultipartRequest.getFileMap()
Return a
Map of the multipart files contained in this request. |
List<MultipartFile> |
MultipartRequest.getFiles(String name)
Return the contents plus description of uploaded files in this request,
or an empty list if it does not exist.
|
MultiValueMap<String,MultipartFile> |
MultipartRequest.getMultiFileMap()
Return a
MultiValueMap of the multipart files contained in this request. |
Modifier and Type | Class and Description |
---|---|
class |
CommonsMultipartFile
MultipartFile implementation for Apache Commons FileUpload. |
Modifier and Type | Method and Description |
---|---|
MultiValueMap<String,MultipartFile> |
CommonsFileUploadSupport.MultipartParsingResult.getMultipartFiles() |
Modifier and Type | Method and Description |
---|---|
protected void |
CommonsFileUploadSupport.cleanupFileItems(MultiValueMap<String,MultipartFile> multipartFiles)
Cleanup the Spring MultipartFiles created during multipart parsing,
potentially holding temporary data on disk.
|
Constructor and Description |
---|
MultipartParsingResult(MultiValueMap<String,MultipartFile> mpFiles,
Map<String,String[]> mpParams,
Map<String,String> mpParamContentTypes) |
Modifier and Type | Method and Description |
---|---|
MultipartFile |
AbstractMultipartHttpServletRequest.getFile(String name) |
Modifier and Type | Method and Description |
---|---|
Map<String,MultipartFile> |
AbstractMultipartHttpServletRequest.getFileMap() |
List<MultipartFile> |
AbstractMultipartHttpServletRequest.getFiles(String name) |
MultiValueMap<String,MultipartFile> |
AbstractMultipartHttpServletRequest.getMultiFileMap() |
protected MultiValueMap<String,MultipartFile> |
AbstractMultipartHttpServletRequest.getMultipartFiles()
Obtain the MultipartFile Map for retrieval,
lazily initializing it if necessary.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractMultipartHttpServletRequest.setMultipartFiles(MultiValueMap<String,MultipartFile> multipartFiles)
Set a Map with parameter names as keys and list of MultipartFile objects as values.
|
Constructor and Description |
---|
DefaultMultipartHttpServletRequest(HttpServletRequest request,
MultiValueMap<String,MultipartFile> mpFiles,
Map<String,String[]> mpParams,
Map<String,String> mpParamContentTypes)
Wrap the given HttpServletRequest in a MultipartHttpServletRequest.
|