Top Description Fields Constructors Methods
org.apache.tomcat.util.http.fileupload

public Class FileUpload

extends FileUploadBase
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
private FileItemFactory
fileItemFactory

The factory to use to create new form items.

Inherited from org.apache.tomcat.util.http.fileupload.FileUploadBase:
ATTACHMENTCONTENT_DISPOSITIONCONTENT_LENGTHCONTENT_TYPEFORM_DATAMULTIPARTMULTIPART_FORM_DATAMULTIPART_MIXED

Constructor Summary

AccessConstructor and Description
public
FileUpload()

Constructs an uninitialized instance of this class.

Method Summary

Modifier and TypeMethod and Description
public FileItemFactory

Returns:

The factory class for new file items.
getFileItemFactory
()

Implements abstract org.apache.tomcat.util.http.fileupload.FileUploadBase.getFileItemFactory.

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.apache.tomcat.util.http.fileupload.FileUploadBase.setFileItemFactory.

Sets the factory class to use when creating file items.

Inherited from org.apache.tomcat.util.http.fileupload.FileUploadBase:
getBoundarygetFieldNamegetFileCountMaxgetFileNamegetFileSizeMaxgetHeaderEncodinggetItemIteratorgetParsedHeadersgetProgressListenergetSizeMaxnewFileItemHeadersparseRequestsetFileCountMaxsetFileSizeMaxsetHeaderEncodingsetProgressListenersetSizeMax

Field Detail

fileItemFactoryback to summary
private FileItemFactory fileItemFactory

The factory to use to create new form items.

Constructor Detail

FileUploadback to summary
public FileUpload()

Constructs an uninitialized instance of this class. A factory must be configured, using setFileItemFactory(), before attempting to parse requests.

Method Detail

getFileItemFactoryback to summary
public FileItemFactory getFileItemFactory()

Implements abstract org.apache.tomcat.util.http.fileupload.FileUploadBase.getFileItemFactory.

Returns the factory class used when creating file items.

Returns:FileItemFactory

The factory class for new file items.

Annotations
@Override
setFileItemFactoryback to summary
public void setFileItemFactory(final FileItemFactory factory)

Implements abstract org.apache.tomcat.util.http.fileupload.FileUploadBase.setFileItemFactory.

Sets the factory class to use when creating file items.

Parameters
factory:FileItemFactory

The factory class for new file items.

Annotations
@Override