MultipartHttpServletRequest interface.
Provides management of pre-generated MultipartFile instances.
| Modifier and Type | Field and Description |
|---|---|
| private MultiValueMap |
| Access | Constructor and Description |
|---|---|
| protected | AbstractMultipartHttpServletRequest(HttpServletRequest
the request to wrap request)Wrap the given HttpServletRequest in a MultipartHttpServletRequest. |
| Modifier and Type | Method and Description |
|---|---|
| public MultipartFile | getFile(String
a String specifying the parameter name of the multipart file name)Implements org. null if it does not exist.
|
| public Map | getFileMap()
Implements org. java. of the multipart files contained in this request.
|
| public Iterator | getFileNames()
Implements org. java. of String objects containing the
parameter names of the multipart files contained in this request.
|
| public List | getFiles(String
a String specifying the parameter name of the multipart file name)Implements org. |
| public MultiValueMap | getMultiFileMap()
Implements org. MultiValueMap of the multipart files contained in this request.
|
| protected MultiValueMap | |
| public HttpServletRequest | |
| public HttpHeaders | getRequestHeaders()
Implements org. |
| public HttpMethod | getRequestMethod()
Implements org. |
| protected void | |
| public boolean | Returns: true when eagerly initialized or lazily triggered,
false in case of a lazy-resolution request that got aborted
before any parameters or multipart files have been accessedDetermine whether the underlying multipart request has been resolved. |
| protected final void | setMultipartFiles(MultiValueMap<String, MultipartFile> multipartFiles)
Set a Map with parameter names as keys and list of MultipartFile objects as values. |
| multipartFiles | back to summary |
|---|---|
| private MultiValueMap<String, MultipartFile> multipartFiles
| |
| AbstractMultipartHttpServletRequest | back to summary |
|---|---|
| protected AbstractMultipartHttpServletRequest(HttpServletRequest request) Wrap the given HttpServletRequest in a MultipartHttpServletRequest.
| |
| getFile | back to summary |
|---|---|
| public MultipartFile getFile(String name) Implements org. Doc from org. Return the contents plus description of an uploaded file in this request,
or
| |
| getFileMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return a
| |
| getFileNames | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Return an | |
| getFiles | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the contents plus description of uploaded files in this request, or an empty list if it does not exist.
| |
| getMultiFileMap | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a
| |
| getMultipartFiles | back to summary |
|---|---|
| protected MultiValueMap Obtain the MultipartFile Map for retrieval, lazily initializing it if necessary.
| |
| getRequest | back to summary |
|---|---|
| public HttpServletRequest getRequest() Overrides jakarta. Doc from jakarta. Get the wrapped request.
| |
| getRequestHeaders | back to summary |
|---|---|
| public HttpHeaders getRequestHeaders() Implements org. Doc from org. Return this request's headers as a convenient HttpHeaders instance.
| |
| getRequestMethod | back to summary |
|---|---|
| public HttpMethod getRequestMethod() Implements org. Doc from org. Return this request's method as a convenient HttpMethod instance.
| |
| initializeMultipart | back to summary |
|---|---|
| protected void initializeMultipart() Lazily initialize the multipart request, if possible. Only called if not already eagerly initialized. | |
| isResolved | back to summary |
|---|---|
| public boolean isResolved() Determine whether the underlying multipart request has been resolved.
| |
| setMultipartFiles | back to summary |
|---|---|
| protected final void setMultipartFiles(MultiValueMap<String, MultipartFile> multipartFiles) Set a Map with parameter names as keys and list of MultipartFile objects as values. To be invoked by subclasses on initialization. | |