Package | Description |
---|---|
org.apache.commons.fileupload |
A component for handling HTML file uploads as specified by
RFC 1867.
|
org.apache.commons.fileupload.portlet |
An implementation of
FileUpload
for use in portlets conforming to JSR 168. |
org.apache.commons.fileupload.servlet |
An implementation of
FileUpload
for use in servlets conforming to JSR 53. |
Modifier and Type | Class and Description |
---|---|
static class |
FileUploadBase.FileSizeLimitExceededException
Thrown to indicate that A files size exceeds the configured maximum.
|
static class |
FileUploadBase.InvalidContentTypeException
Thrown to indicate that the request is not a multipart request.
|
static class |
FileUploadBase.IOFileUploadException
Thrown to indicate an IOException.
|
protected static class |
FileUploadBase.SizeException
This exception is thrown, if a requests permitted size
is exceeded.
|
static class |
FileUploadBase.SizeLimitExceededException
Thrown to indicate that the request size exceeds the configured maximum.
|
static class |
FileUploadBase.UnknownSizeException
Deprecated.
As of commons-fileupload 1.2, the presence of a
content-length header is no longer required.
|
Modifier and Type | Method and Description |
---|---|
protected FileItem |
FileUploadBase.createItem(Map headers,
boolean isFormField)
Deprecated.
This method is no longer used in favour of
internally created instances of
FileItem . |
FileItemIterator |
FileUploadBase.getItemIterator(RequestContext ctx)
Processes an RFC 1867
compliant
multipart/form-data stream. |
boolean |
FileItemIterator.hasNext()
Returns, whether another instance of
FileItemStream
is available. |
FileItemStream |
FileItemIterator.next()
Returns the next available
FileItemStream . |
List |
FileUploadBase.parseRequest(javax.servlet.http.HttpServletRequest req)
Deprecated.
Use the method in
ServletFileUpload instead. |
List |
DiskFileUpload.parseRequest(javax.servlet.http.HttpServletRequest req,
int sizeThreshold,
long sizeMax,
String path)
Deprecated.
Use
ServletFileUpload instead. |
List |
FileUploadBase.parseRequest(RequestContext ctx)
Processes an RFC 1867
compliant
multipart/form-data stream. |
Constructor and Description |
---|
FileUploadBase.FileUploadIOException(FileUploadException pCause)
Creates a
FileUploadIOException with the
given cause. |
Modifier and Type | Method and Description |
---|---|
FileItemIterator |
PortletFileUpload.getItemIterator(javax.portlet.ActionRequest request)
Processes an RFC 1867
compliant
multipart/form-data stream. |
List |
PortletFileUpload.parseRequest(javax.portlet.ActionRequest request)
Processes an RFC 1867
compliant
multipart/form-data stream. |
Modifier and Type | Method and Description |
---|---|
FileItemIterator |
ServletFileUpload.getItemIterator(javax.servlet.http.HttpServletRequest request)
Processes an RFC 1867
compliant
multipart/form-data stream. |
List |
ServletFileUpload.parseRequest(javax.servlet.http.HttpServletRequest request)
Processes an RFC 1867
compliant
multipart/form-data stream. |
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.