public interface

MultipartRequest

org.springframework.web.multipart.MultipartRequest
Known Indirect Subclasses

Class Overview

This interface defines the multipart request access operations that are exposed for actual multipart requests. It is extended by MultipartHttpServletRequest and the Portlet MultipartActionRequest.

Summary

Public Methods
abstract MultipartFile getFile(String name)
Return the contents plus description of an uploaded file in this request, or null if it does not exist.
abstract Map<StringMultipartFile> getFileMap()
Return a Map of the multipart files contained in this request.
abstract Iterator<String> getFileNames()
Return an Iterator of String objects containing the parameter names of the multipart files contained in this request.
abstract List<MultipartFile> getFiles(String name)
Return the contents plus description of uploaded files in this request, or an empty list if it does not exist.
abstract MultiValueMap<StringMultipartFile> getMultiFileMap()
Return a MultiValueMap of the multipart files contained in this request.

Public Methods

public abstract MultipartFile getFile (String name)

Return the contents plus description of an uploaded file in this request, or null if it does not exist.

Parameters
name a String specifying the parameter name of the multipart file
Returns

public abstract Map<StringMultipartFile> getFileMap ()

Return a Map of the multipart files contained in this request.

Returns
  • a map containing the parameter names as keys, and the MultipartFile objects as values

public abstract Iterator<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.

Returns
  • the names of the files

public abstract List<MultipartFile> getFiles (String name)

Return 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

public abstract MultiValueMap<StringMultipartFile> getMultiFileMap ()

Return a MultiValueMap of the multipart files contained in this request.

Returns
  • a map containing the parameter names as keys, and a list of MultipartFile objects as values