org.springframework.web.multipart |
Multipart resolution framework for handling file uploads.
Provides a MultipartResolver strategy interface,
and a generic extension of the HttpServletRequest interface
for accessing multipart files in web application code.
|
Java Source File Name | Type | Comment |
MaxUploadSizeExceededException.java | Class | MultipartException subclass thrown when an upload exceeds the
maximum upload size allowed. |
MultipartException.java | Class | Exception thrown on multipart resolution.
Extends IOException for convenient throwing in any Servlet/Portlet resource
(such as a Filter), and NestedIOException for proper root cause handling.
author: Trevor D. |
MultipartFile.java | Interface | A representation of an uploaded file received in a multipart request.
The file contents are either stored in memory or temporarily on disk.
In either case, the user is responsible for copying file contents to a
session-level or persistent store as and if desired. |
MultipartHttpServletRequest.java | Interface | Provides additional methods for dealing with multipart content within a
servlet request, allowing to access uploaded files.
Implementations also need to override the standard
javax.servlet.ServletRequest methods for parameter access, making
multipart parameters available.
A concrete implementation is
org.springframework.web.multipart.support.DefaultMultipartHttpServletRequest .
As an intermediate step,
org.springframework.web.multipart.support.AbstractMultipartHttpServletRequest can be subclassed.
author: Juergen Hoeller author: Trevor D. |
MultipartResolver.java | Interface | A strategy interface for multipart file upload resolution in accordance
with RFC 1867.
Implementations are typically usable both within an application context
and standalone.
There are two concrete implementations included in Spring:
There is no default resolver implementation used for Spring
org.springframework.web.servlet.DispatcherServlet DispatcherServlets ,
as an application might choose to parse its multipart requests itself. |