java.lang.Objectorg.apache.commons.fileupload.FileUploadBase
Direct Known Subclasses:
PortletFileUpload, FileUpload, DiskFileUpload, ServletFileUpload
High level API for processing file uploads.
This class handles multiple files per single HTML widget, sent using
multipart/mixed encoding type, as specified by
RFC 1867. Use #parseRequest(HttpServletRequest) to acquire a list of org.apache.commons.fileupload.FileItem s associated with a given HTML
widget.
How the data for individual parts is stored is determined by the factory used to create them; a given part may be in memory, on disk, or somewhere else.
< - a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski< - a href="mailto:dlr@collab.net">Daniel Rall< - a href="mailto:jvanzyl@apache.org">Jason van Zyl< - a href="mailto:jmcnally@collab.net">John McNally< - a href="mailto:martinc@apache.org">Martin CooperSean - C. Sullivan$ - Id: FileUploadBase.java 502350 2007-02-01 20:42:48Z jochen $| Nested Class Summary: | ||
|---|---|---|
| public static class | FileUploadBase.FileUploadIOException | This exception is thrown for hiding an inner {@link FileUploadException} in an {@link IOException}. |
| public static class | FileUploadBase.InvalidContentTypeException | Thrown to indicate that the request is not a multipart request. |
| public static class | FileUploadBase.IOFileUploadException | Thrown to indicate an IOException. |
| abstract protected static class | FileUploadBase.SizeException | This exception is thrown, if a requests permitted size is exceeded. |
| public static class | FileUploadBase.UnknownSizeException | Thrown to indicate that the request size is not specified. In other words, it is thrown, if the content-length header is missing or contains the value -1. |
| public static class | FileUploadBase.SizeLimitExceededException | Thrown to indicate that the request size exceeds the configured maximum. |
| public static class | FileUploadBase.FileSizeLimitExceededException | Thrown to indicate that A files size exceeds the configured maximum. |
| Field Summary | ||
|---|---|---|
| public static final String | CONTENT_TYPE | HTTP content type header name. |
| public static final String | CONTENT_DISPOSITION | HTTP content disposition header name. |
| public static final String | FORM_DATA | Content-disposition value for form data. |
| public static final String | ATTACHMENT | Content-disposition value for file attachment. |
| public static final String | MULTIPART | Part of HTTP content type header. |
| public static final String | MULTIPART_FORM_DATA | HTTP content type header for multipart forms. |
| public static final String | MULTIPART_MIXED | HTTP content type header for multiple uploads. |
| public static final int | MAX_HEADER_SIZE | The maximum length of a single header line that will be parsed
(1024 bytes). |
| Method from org.apache.commons.fileupload.FileUploadBase Summary: |
|---|
| createItem, getBoundary, getFieldName, getFileItemFactory, getFileName, getFileSizeMax, getHeader, getHeaderEncoding, getItemIterator, getProgressListener, getSizeMax, isMultipartContent, isMultipartContent, parseHeaders, parseRequest, parseRequest, setFileItemFactory, setFileSizeMax, setHeaderEncoding, setProgressListener, setSizeMax |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.commons.fileupload.FileUploadBase Detail: |
|---|
Deprecated! This - method is no longer used in favour of
internally created instances of FileItem .
|
Content-type header. |
Content-disposition
header. |
|
Content-disposition
header. |
|
|
null, the request
encoding is used. If that is also not specified, or null,
the platform default encoding is used. |
multipart/form-data stream. |
|
|
Utility method that determines whether the request contains multipart content. NOTE:This method will be moved to the
|
Deprecated! Use - the method on ServletFileUpload instead.
|
Parses the If there are multiple headers of the same names, the name will map to a comma-separated list containing the values. |
Deprecated! Use - the method in ServletFileUpload instead.
multipart/form-data stream. |
multipart/form-data stream. |
|
|
null, the request
encoding is used. If that is also not specified, or null,
the platform default encoding is used. |
|
|