org.apache.commons.fileupload
public class: FileUpload [javadoc |
source]
java.lang.Object
org.apache.commons.fileupload.FileUploadBase
org.apache.commons.fileupload.FileUpload
Direct Known Subclasses:
PortletFileUpload, 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(javax.servlet.http.HttpServletRequest) 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.
- author:
< - a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski
- author:
< - a href="mailto:dlr@collab.net">Daniel Rall
- author:
< - a href="mailto:jvanzyl@apache.org">Jason van Zyl
- author:
< - a href="mailto:jmcnally@collab.net">John McNally
- author:
< - a href="mailto:martinc@apache.org">Martin Cooper
- author:
Sean - C. Sullivan
- version:
$ - Id: FileUpload.java 479484 2006-11-27 01:06:53Z jochen $
| Constructor: |
public FileUpload() {
super();
}
Constructs an uninitialised instance of this class. A factory must be
configured, using setFileItemFactory(), before attempting
to parse requests. |
public FileUpload(FileItemFactory fileItemFactory) {
super();
this.fileItemFactory = fileItemFactory;
}
Constructs an instance of this class which uses the supplied factory to
create FileItem instances. Parameters:
fileItemFactory - The factory to use for creating file items.
Also see:
- FileUpload()
|
| Methods from org.apache.commons.fileupload.FileUploadBase: |
|---|
|
createItem, getBoundary, getFieldName, getFileItemFactory, getFileName, getFileSizeMax, getHeader, getHeaderEncoding, getItemIterator, getProgressListener, getSizeMax, isMultipartContent, isMultipartContent, parseHeaders, parseRequest, parseRequest, setFileItemFactory, setFileSizeMax, setHeaderEncoding, setProgressListener, setSizeMax |