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(RequestContext) to acquire a list
of FileItems 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.
| Modifier and Type | Field and Description |
|---|---|
| private FileItemFactory | fileItemFactory
The factory to use to create new form items. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FileItemFactory | Returns: The factory class for new file items.Implements abstract org. Returns the factory class used when creating file items. |
| public void | setFileItemFactory(final FileItemFactory
The factory class for new file items. factory)Implements abstract org. Sets the factory class to use when creating file items. |
| fileItemFactory | back to summary |
|---|---|
| private FileItemFactory fileItemFactory The factory to use to create new form items. | |
| FileUpload | back to summary |
|---|---|
| public FileUpload() Constructs an uninitialized instance of this class.
A factory must be
configured, using | |
| getFileItemFactory | back to summary |
|---|---|
| public FileItemFactory getFileItemFactory() Implements abstract org. Returns the factory class used when creating file items.
| |
| setFileItemFactory | back to summary |
|---|---|
| public void setFileItemFactory(final FileItemFactory factory) Implements abstract org. Sets the factory class to use when creating file items.
| |