A B C D F G H I K L M O P R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- actual - Variable in exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
The actual size of the request.
- arrayequals(byte[], byte[], int) - Static method in class org.apache.commons.fileupload.MultipartStream
-
Compares
count
first bytes in the arraysa
andb
. - ATTACHMENT - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
Content-disposition value for file attachment.
B
- boundary - Variable in class org.apache.commons.fileupload.MultipartStream
-
The byte sequence that partitions the stream.
- BOUNDARY_PREFIX - Static variable in class org.apache.commons.fileupload.MultipartStream
-
A byte sequence that precedes a boundary (
CRLF--
). - boundaryLength - Variable in class org.apache.commons.fileupload.MultipartStream
-
The length of the boundary token plus the leading
CRLF--
. - buffer - Variable in class org.apache.commons.fileupload.MultipartStream
-
The buffer used for processing the request.
- bufSize - Variable in class org.apache.commons.fileupload.MultipartStream
-
The length of the buffer used for processing the request.
C
- cachedContent - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Cached contents of the file.
- cause - Variable in exception org.apache.commons.fileupload.FileUploadException
-
The exceptions cause.
- chars - Variable in class org.apache.commons.fileupload.ParameterParser
-
String to be parsed.
- CONTENT_DISPOSITION - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content disposition header name.
- CONTENT_TYPE - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content type header name.
- contentType - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The content type passed by the browser, or
null
if not defined. - counter - Static variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Counter used in unique identifier generation.
- CR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The Carriage Return ASCII character value.
- createItem(String, String, boolean, String) - Method in class org.apache.commons.fileupload.DefaultFileItemFactory
-
Deprecated.Use
DiskFileItemFactory
instead. - createItem(String, String, boolean, String) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Create a new
DiskFileItem
instance from the supplied parameters and the local factory configuration. - createItem(String, String, boolean, String) - Method in interface org.apache.commons.fileupload.FileItemFactory
-
Create a new
FileItem
instance from the supplied parameters and any local factory configuration. - createItem(Map, boolean) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Creates a new
FileItem
instance.
D
- DASH - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The dash (-) ASCII character value.
- DEFAULT_BUFSIZE - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The default length of the buffer used for processing a request.
- DEFAULT_CHARSET - Static variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Default content charset to be used when no explicit charset parameter is provided by the sender.
- DEFAULT_SIZE_THRESHOLD - Static variable in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
The default threshold above which uploads will be stored on disk.
- DefaultFileItem - Class in org.apache.commons.fileupload
-
Deprecated.Use
DiskFileItem
instead. - DefaultFileItem(String, String, boolean, String, int, File) - Constructor for class org.apache.commons.fileupload.DefaultFileItem
-
Deprecated.Use
DiskFileItem
instead. - DefaultFileItemFactory - Class in org.apache.commons.fileupload
-
Deprecated.Use
DiskFileItemFactory
instead. - DefaultFileItemFactory() - Constructor for class org.apache.commons.fileupload.DefaultFileItemFactory
-
Deprecated.Use
DiskFileItemFactory
instead. - DefaultFileItemFactory(int, File) - Constructor for class org.apache.commons.fileupload.DefaultFileItemFactory
-
Deprecated.Use
DiskFileItemFactory
instead. - delete() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
- delete() - Method in interface org.apache.commons.fileupload.FileItem
-
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
- dfos - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Output stream for this item.
- discardBodyData() - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads
body-data
from the currentencapsulation
and discards it. - DiskFileItem - Class in org.apache.commons.fileupload.disk
-
The default implementation of the
FileItem
interface. - DiskFileItem(String, String, boolean, String, int, File) - Constructor for class org.apache.commons.fileupload.disk.DiskFileItem
-
Constructs a new
DiskFileItem
instance. - DiskFileItemFactory - Class in org.apache.commons.fileupload.disk
-
The default
FileItemFactory
implementation. - DiskFileItemFactory() - Constructor for class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Constructs an unconfigured instance of this class.
- DiskFileItemFactory(int, File) - Constructor for class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Constructs a preconfigured instance of this class.
- DiskFileUpload - Class in org.apache.commons.fileupload
-
Deprecated.Use
ServletFileUpload
together withDiskFileItemFactory
instead. - DiskFileUpload() - Constructor for class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
FileUpload
instead. - DiskFileUpload(DefaultFileItemFactory) - Constructor for class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
FileUpload
instead.
F
- FIELD_SEPARATOR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
A byte sequence that that follows a delimiter that will be followed by an encapsulation (
CRLF
). - fieldName - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The name of the form field as provided by the browser.
- FileItem - Interface in org.apache.commons.fileupload
-
This class represents a file or form item that was received within a
multipart/form-data
POST request. - fileItemFactory - Variable in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.The factory to use to create new form items.
- fileItemFactory - Variable in class org.apache.commons.fileupload.FileUpload
-
The factory to use to create new form items.
- FileItemFactory - Interface in org.apache.commons.fileupload
-
A factory interface for creating
FileItem
instances. - fileName - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The original filename in the user's filesystem.
- FileUpload - Class in org.apache.commons.fileupload
-
High level API for processing file uploads.
- FileUpload() - Constructor for class org.apache.commons.fileupload.FileUpload
-
Constructs an uninitialised instance of this class.
- FileUpload(FileItemFactory) - Constructor for class org.apache.commons.fileupload.FileUpload
-
Constructs an instance of this class which uses the supplied factory to create
FileItem
instances. - FileUploadBase - Class in org.apache.commons.fileupload
-
High level API for processing file uploads.
- FileUploadBase() - Constructor for class org.apache.commons.fileupload.FileUploadBase
- FileUploadBase.InvalidContentTypeException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that the request is not a multipart request.
- FileUploadBase.SizeLimitExceededException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that the request size exceeds the configured maximum.
- FileUploadBase.UnknownSizeException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that the request size is not specified.
- FileUploadException - Exception in org.apache.commons.fileupload
-
Exception for errors encountered while processing the request.
- FileUploadException() - Constructor for exception org.apache.commons.fileupload.FileUploadException
-
Constructs a new
FileUploadException
without message. - FileUploadException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadException
-
Constructs a new
FileUploadException
with specified detail message. - FileUploadException(String, Throwable) - Constructor for exception org.apache.commons.fileupload.FileUploadException
-
Creates a new
FileUploadException
with the given detail message and cause. - finalize() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Removes the file contents from the temporary storage.
- findByte(byte, int) - Method in class org.apache.commons.fileupload.MultipartStream
-
Searches for a byte of specified value in the
buffer
, starting at the specifiedposition
. - findSeparator() - Method in class org.apache.commons.fileupload.MultipartStream
-
Searches for the
boundary
in thebuffer
region delimited byhead
andtail
. - FORM_DATA - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
Content-disposition value for form data.
G
- get() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the contents of the file as an array of bytes.
- get() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the contents of the file item as an array of bytes.
- getActualSize() - Method in exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
Retrieves the actual size of the request.
- getBoundary(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the boundary from the
Content-type
header. - getCause() - Method in exception org.apache.commons.fileupload.FileUploadException
- getCharacterEncoding() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the character encoding for the request.
- getCharacterEncoding() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the character encoding for the request.
- getCharacterEncoding() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the character encoding for the request.
- getCharSet() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the content charset passed by the agent or
null
if not defined. - getContentLength() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the content length of the request.
- getContentLength() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the content length of the request.
- getContentLength() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the content length of the request.
- getContentType() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the content type passed by the agent or
null
if not defined. - getContentType() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the content type passed by the browser or
null
if not defined. - getContentType() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the content type of the request.
- getContentType() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the content type of the request.
- getContentType() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the content type of the request.
- getFieldName() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the name of the field in the multipart form corresponding to this file item.
- getFieldName() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the name of the field in the multipart form corresponding to this file item.
- getFieldName(Map) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the field name from the
Content-disposition
header. - getFileItemFactory() - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
FileUpload
instead. - getFileItemFactory() - Method in class org.apache.commons.fileupload.FileUpload
-
Returns the factory class used when creating file items.
- getFileItemFactory() - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the factory class used when creating file items.
- getFileName(Map) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the file name from the
Content-disposition
header. - getHeader(Map, String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the header with the specified name from the supplied map.
- getHeaderEncoding() - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the character encoding used when reading the headers of an individual part.
- getHeaderEncoding() - Method in class org.apache.commons.fileupload.MultipartStream
-
Retrieves the character encoding used when reading the headers of an individual part.
- getInputStream() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns an
InputStream
that can be used to retrieve the contents of the file. - getInputStream() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns an
InputStream
that can be used to retrieve the contents of the file. - getInputStream() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the input stream for the request.
- getInputStream() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the input stream for the request.
- getInputStream() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the input stream for the request.
- getName() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the original filename in the client's filesystem.
- getName() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the original filename in the client's filesystem, as provided by the browser (or other client software).
- getOutputStream() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns an
OutputStream
that can be used for storing the contents of the file. - getOutputStream() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns an
OutputStream
that can be used for storing the contents of the file. - getPermittedSize() - Method in exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
Retrieves the permitted size of the request.
- getRepository() - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Returns the directory used to temporarily store files that are larger than the configured size threshold.
- getRepositoryPath() - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
DiskFileItemFactory
instead. - getSize() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the size of the file.
- getSize() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the size of the file item.
- getSizeMax() - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the maximum allowed upload size.
- getSizeThreshold() - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Returns the size threshold beyond which files are written directly to disk.
- getSizeThreshold() - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
DiskFileItemFactory
instead. - getStoreLocation() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the
File
object for theFileItem
's data's temporary location on the disk. - getString() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the contents of the file as a String, using the default character encoding.
- getString() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the contents of the file item as a String, using the default character encoding.
- getString(String) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the contents of the file as a String, using the specified encoding.
- getString(String) - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the contents of the file item as a String, using the specified encoding.
- getTempFile() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Creates and returns a
File
representing a uniquely named temporary file in the configured repository path. - getToken(boolean) - Method in class org.apache.commons.fileupload.ParameterParser
-
A helper method to process the parsed token.
- getUniqueId() - Static method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns an identifier that is unique within the class loader used to load this class, but does not have random-like apearance.
H
- hasChar() - Method in class org.apache.commons.fileupload.ParameterParser
-
Are there any characters left to parse?
- head - Variable in class org.apache.commons.fileupload.MultipartStream
-
The index of first valid character in the buffer.
- HEADER_PART_SIZE_MAX - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The maximum length of
header-part
that will be processed (10 kilobytes = 10240 bytes.). - HEADER_SEPARATOR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
A byte sequence that marks the end of
header-part
(CRLFCRLF
). - headerEncoding - Variable in class org.apache.commons.fileupload.FileUploadBase
-
The content encoding to use when reading part headers.
- headerEncoding - Variable in class org.apache.commons.fileupload.MultipartStream
-
The content encoding to use when reading headers.
I
- i1 - Variable in class org.apache.commons.fileupload.ParameterParser
-
Start of a token.
- i2 - Variable in class org.apache.commons.fileupload.ParameterParser
-
End of a token.
- IllegalBoundaryException() - Constructor for exception org.apache.commons.fileupload.MultipartStream.IllegalBoundaryException
-
Constructs an
IllegalBoundaryException
with no detail message. - IllegalBoundaryException(String) - Constructor for exception org.apache.commons.fileupload.MultipartStream.IllegalBoundaryException
-
Constructs an
IllegalBoundaryException
with the specified detail message. - input - Variable in class org.apache.commons.fileupload.MultipartStream
-
The input stream from which data is read.
- InvalidContentTypeException() - Constructor for exception org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException
-
Constructs a
InvalidContentTypeException
with no detail message. - InvalidContentTypeException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException
-
Constructs an
InvalidContentTypeException
with the specified detail message. - InvalidContentTypeException(String, Throwable) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException
- isFormField - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Whether or not this item is a simple form field.
- isFormField() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Determines whether or not a
FileItem
instance represents a simple form field. - isFormField() - Method in interface org.apache.commons.fileupload.FileItem
-
Determines whether or not a
FileItem
instance represents a simple form field. - isInMemory() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Provides a hint as to whether or not the file contents will be read from memory.
- isInMemory() - Method in interface org.apache.commons.fileupload.FileItem
-
Provides a hint as to whether or not the file contents will be read from memory.
- isLowerCaseNames() - Method in class org.apache.commons.fileupload.ParameterParser
-
Returns true if parameter names are to be converted to lower case when name/value pairs are parsed.
- isMultipartContent(ActionRequest) - Static method in class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Utility method that determines whether the request contains multipart content.
- isMultipartContent(HttpServletRequest) - Static method in class org.apache.commons.fileupload.FileUploadBase
-
Deprecated.Use the method on
ServletFileUpload
instead. - isMultipartContent(RequestContext) - Static method in class org.apache.commons.fileupload.FileUploadBase
-
Utility method that determines whether the request contains multipart content.
- isOneOf(char, char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Tests if the given character is present in the array of characters.
K
- KEEP_REGION_PAD - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The number of bytes, over and above the boundary size, to use for the keep region.
- keepRegion - Variable in class org.apache.commons.fileupload.MultipartStream
-
The amount of data, in bytes, that must be kept in the buffer in order to detect delimiters reliably.
L
- len - Variable in class org.apache.commons.fileupload.ParameterParser
-
Maximum position in the string.
- LF - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The Line Feed ASCII character value.
- lowerCaseNames - Variable in class org.apache.commons.fileupload.ParameterParser
-
Whether names stored in the map should be converted to lower case.
M
- MalformedStreamException() - Constructor for exception org.apache.commons.fileupload.MultipartStream.MalformedStreamException
-
Constructs a
MalformedStreamException
with no detail message. - MalformedStreamException(String) - Constructor for exception org.apache.commons.fileupload.MultipartStream.MalformedStreamException
-
Constructs an
MalformedStreamException
with the specified detail message. - MAX_HEADER_SIZE - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
The maximum length of a single header line that will be parsed (1024 bytes).
- multi - Variable in class org.apache.commons.fileupload.FileUploadBase
- MULTIPART - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
Part of HTTP content type header.
- MULTIPART_FORM_DATA - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content type header for multipart forms.
- MULTIPART_MIXED - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content type header for multiple uploads.
- MultipartStream - Class in org.apache.commons.fileupload
-
Low level API for processing file uploads.
- MultipartStream() - Constructor for class org.apache.commons.fileupload.MultipartStream
-
Default constructor.
- MultipartStream(InputStream, byte[]) - Constructor for class org.apache.commons.fileupload.MultipartStream
-
Constructs a
MultipartStream
with a default size buffer. - MultipartStream(InputStream, byte[], int) - Constructor for class org.apache.commons.fileupload.MultipartStream
-
Constructs a
MultipartStream
with a custom size buffer. - MultipartStream.IllegalBoundaryException - Exception in org.apache.commons.fileupload
-
Thrown upon attempt of setting an invalid boundary token.
- MultipartStream.MalformedStreamException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that the input stream fails to follow the required syntax.
O
- org.apache.commons.fileupload - package org.apache.commons.fileupload
-
A component for handling HTML file uploads as specified by RFC 1867.
- org.apache.commons.fileupload.disk - package org.apache.commons.fileupload.disk
-
A disk-based implementation of the
FileItem
interface. - org.apache.commons.fileupload.portlet - package org.apache.commons.fileupload.portlet
-
An implementation of
FileUpload
for use in portlets conforming to JSR 168. - org.apache.commons.fileupload.servlet - package org.apache.commons.fileupload.servlet
-
An implementation of
FileUpload
for use in servlets conforming to JSR 53.
P
- ParameterParser - Class in org.apache.commons.fileupload
-
A simple parser intended to parse sequences of name/value pairs.
- ParameterParser() - Constructor for class org.apache.commons.fileupload.ParameterParser
-
Default ParameterParser constructor.
- parse(char[], char) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given array of characters.
- parse(char[], int, int, char) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given array of characters.
- parse(String, char) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given string.
- parseHeaders(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Parses the
header-part
and returns as key/value pairs. - parseQuotedToken(char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Parses out a token until any of the given terminators is encountered outside the quotation marks.
- parseRequest(ActionRequest) - Method in class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Processes an RFC 1867 compliant
multipart/form-data
stream. - parseRequest(HttpServletRequest) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Deprecated.Use the method in
ServletFileUpload
instead. - parseRequest(HttpServletRequest) - Method in class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Processes an RFC 1867 compliant
multipart/form-data
stream. - parseRequest(HttpServletRequest, int, long, String) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
ServletFileUpload
instead. - parseRequest(RequestContext) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Processes an RFC 1867 compliant
multipart/form-data
stream. - parseToken(char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Parses out a token until any of the given terminators is encountered.
- permitted - Variable in exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
The maximum permitted size of the request.
- PortletFileUpload - Class in org.apache.commons.fileupload.portlet
-
High level API for processing file uploads.
- PortletFileUpload() - Constructor for class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Constructs an uninitialised instance of this class.
- PortletFileUpload(FileItemFactory) - Constructor for class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Constructs an instance of this class which uses the supplied factory to create
FileItem
instances. - PortletRequestContext - Class in org.apache.commons.fileupload.portlet
-
Provides access to the request information needed for a request made to a portlet.
- PortletRequestContext(ActionRequest) - Constructor for class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Construct a context for this request.
- pos - Variable in class org.apache.commons.fileupload.ParameterParser
-
Current position in the string.
- printStackTrace(PrintStream) - Method in exception org.apache.commons.fileupload.FileUploadException
-
Prints this throwable and its backtrace to the specified print stream.
- printStackTrace(PrintWriter) - Method in exception org.apache.commons.fileupload.FileUploadException
-
Prints this throwable and its backtrace to the specified print writer.
R
- readBodyData(OutputStream) - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads
body-data
from the currentencapsulation
and writes its contents into the outputStream
. - readBoundary() - Method in class org.apache.commons.fileupload.MultipartStream
-
Skips a
boundary
token, and checks whether moreencapsulations
are contained in the stream. - readByte() - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads a byte from the
buffer
, and refills it as necessary. - readHeaders() - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads the
header-part
of the currentencapsulation
. - repository - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The directory in which uploaded files will be stored, if stored on disk.
- repository - Variable in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
The directory in which uploaded files will be stored, if stored on disk.
- request - Variable in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
The request for which the context is being provided.
- request - Variable in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
The request for which the context is being provided.
- RequestContext - Interface in org.apache.commons.fileupload
-
Abstracts access to the request information needed for file uploads.
S
- ServletFileUpload - Class in org.apache.commons.fileupload.servlet
-
High level API for processing file uploads.
- ServletFileUpload() - Constructor for class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Constructs an uninitialised instance of this class.
- ServletFileUpload(FileItemFactory) - Constructor for class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Constructs an instance of this class which uses the supplied factory to create
FileItem
instances. - ServletRequestContext - Class in org.apache.commons.fileupload.servlet
-
Provides access to the request information needed for a request made to an HTTP servlet.
- ServletRequestContext(HttpServletRequest) - Constructor for class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Construct a context for this request.
- setBoundary(byte[]) - Method in class org.apache.commons.fileupload.MultipartStream
-
Changes the boundary token used for partitioning the stream.
- setFieldName(String) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Sets the field name used to reference this file item.
- setFieldName(String) - Method in interface org.apache.commons.fileupload.FileItem
-
Sets the field name used to reference this file item.
- setFileItemFactory(FileItemFactory) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
FileUpload
instead. - setFileItemFactory(FileItemFactory) - Method in class org.apache.commons.fileupload.FileUpload
-
Sets the factory class to use when creating file items.
- setFileItemFactory(FileItemFactory) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Sets the factory class to use when creating file items.
- setFormField(boolean) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Specifies whether or not a
FileItem
instance represents a simple form field. - setFormField(boolean) - Method in interface org.apache.commons.fileupload.FileItem
-
Specifies whether or not a
FileItem
instance represents a simple form field. - setHeaderEncoding(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Specifies the character encoding to be used when reading the headers of individual part.
- setHeaderEncoding(String) - Method in class org.apache.commons.fileupload.MultipartStream
-
Specifies the character encoding to be used when reading the headers of individual parts.
- setLowerCaseNames(boolean) - Method in class org.apache.commons.fileupload.ParameterParser
-
Sets the flag if parameter names are to be converted to lower case when name/value pairs are parsed.
- setRepository(File) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Sets the directory used to temporarily store files that are larger than the configured size threshold.
- setRepositoryPath(String) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
DiskFileItemFactory
instead. - setSizeMax(long) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Sets the maximum allowed upload size.
- setSizeThreshold(int) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Sets the size threshold beyond which files are written directly to disk.
- setSizeThreshold(int) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.Use
DiskFileItemFactory
instead. - size - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The size of the item, in bytes.
- SizeLimitExceededException() - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
Constructs a
SizeExceededException
with no detail message. - SizeLimitExceededException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
Constructs a
SizeExceededException
with the specified detail message. - SizeLimitExceededException(String, long, long) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
Constructs a
SizeExceededException
with the specified detail message, and actual and permitted sizes. - sizeMax - Variable in class org.apache.commons.fileupload.FileUploadBase
-
The maximum size permitted for an uploaded file.
- sizeThreshold - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The threshold above which uploads will be stored on disk.
- sizeThreshold - Variable in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
The threshold above which uploads will be stored on disk.
- skipPreamble() - Method in class org.apache.commons.fileupload.MultipartStream
-
Finds the beginning of the first
encapsulation
. - STREAM_TERMINATOR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
A byte sequence that that follows a delimiter of the last encapsulation in the stream (
--
).
T
- tail - Variable in class org.apache.commons.fileupload.MultipartStream
-
The index of last valid characer in the buffer + 1.
- toString() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns a string representation of this object.
- toString() - Method in class org.apache.commons.fileupload.MultipartStream
-
Returns a string representation of this object.
- toString() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Returns a string representation of this object.
- toString() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Returns a string representation of this object.
U
- UID - Static variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
UID used in unique file name generation.
- UnknownSizeException() - Constructor for exception org.apache.commons.fileupload.FileUploadBase.UnknownSizeException
-
Constructs a
UnknownSizeException
with no detail message. - UnknownSizeException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.UnknownSizeException
-
Constructs an
UnknownSizeException
with the specified detail message.
W
- write(File) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
A convenience method to write an uploaded item to disk.
- write(File) - Method in interface org.apache.commons.fileupload.FileItem
-
A convenience method to write an uploaded item to disk.
All Classes All Packages