Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractFileItemBuilder() - Constructor for class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- AbstractFileUpload<R,
I extends FileItem<I>, F extends FileItemFactory<I>> - Class in org.apache.commons.fileupload2.core -
High level API for processing file uploads.
- AbstractFileUpload() - Constructor for class org.apache.commons.fileupload2.core.AbstractFileUpload
- AbstractRequestContext<T> - Class in org.apache.commons.fileupload2.core
- AbstractRequestContext(Function<String, String>, LongSupplier, T) - Constructor for class org.apache.commons.fileupload2.core.AbstractRequestContext
-
Constructs a new instance.
- actual - Variable in exception org.apache.commons.fileupload2.core.FileUploadSizeException
-
The actual size of the request.
- addHeader(String, String) - Method in interface org.apache.commons.fileupload2.core.FileItemHeaders
-
Adds a header.
- addHeader(String, String) - Method in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
-
Method to add header values to this instance.
- arrayEquals(byte[], byte[], int) - Static method in class org.apache.commons.fileupload2.core.MultipartInput
-
Compares
countfirst bytes in the arraysaandb. - ATTACHMENT - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Content-disposition value for file attachment.
- available() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Returns the number of bytes, which are currently available, without blocking.
B
- BASE64_ENCODING_MARKER - Static variable in class org.apache.commons.fileupload2.core.MimeUtils
-
The marker to indicate text is encoded with BASE64 algorithm.
- boundary - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The byte sequence that partitions the stream.
- boundary - Variable in class org.apache.commons.fileupload2.core.MultipartInput.Builder
-
Boundary.
- BOUNDARY_KEY - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Boundary parameter key.
- BOUNDARY_PREFIX - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
A byte sequence that precedes a boundary (
CRLF--). - boundaryLength - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The length of the boundary token plus the leading
CRLF--. - boundaryTable - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The table for Knuth-Morris-Pratt search algorithm.
- buffer - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The buffer used for processing the request.
- bufSize - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The length of the buffer used for processing the request.
- builder() - Static method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Constructs a new
DiskFileItem.Builder. - builder() - Static method in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Constructs a new
DiskFileItemFactory.Builder. - builder() - Static method in class org.apache.commons.fileupload2.core.MultipartInput
-
Constructs a new
MultipartInput.Builder. - Builder() - Constructor for class org.apache.commons.fileupload2.core.DiskFileItem.Builder
- Builder() - Constructor for class org.apache.commons.fileupload2.core.DiskFileItemFactory.Builder
- Builder() - Constructor for class org.apache.commons.fileupload2.core.MultipartInput.Builder
- BYTE_POSITIVE_OFFSET - Static variable in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Offset when converting negative bytes to integers.
- bytesRead - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Number of bytes, which have been read so far.
C
- cachedContent - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
Cached contents of the file.
- chars - Variable in class org.apache.commons.fileupload2.core.ParameterParser
-
String to be parsed.
- charsetDefault - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
Default content Charset to be used when no explicit Charset parameter is provided by the sender.
- charsetDefault - Variable in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Default content Charset to be used when no explicit Charset parameter is provided by the sender.
- checkFileName(String) - Static method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Tests if the file name is valid.
- checkOpen() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
- close() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Closes the file item.
- close() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Closes the input stream.
- close(boolean) - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Closes the input stream.
- closed - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Whether the stream is already closed.
- computeBoundaryTable() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Computes the table used for Knuth-Morris-Pratt search algorithm.
- CONTENT_DISPOSITION - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
HTTP content disposition header name.
- CONTENT_LENGTH - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
HTTP content length header name.
- CONTENT_TYPE - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
HTTP content type header name.
- contentLength - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Number of expected bytes, if known, or -1.
- contentLengthDefault - Variable in class org.apache.commons.fileupload2.core.AbstractRequestContext
-
Supplies the content length default.
- contentLengthString - Variable in class org.apache.commons.fileupload2.core.AbstractRequestContext
-
Supplies the content length string.
- contentType - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The content type passed by the browser, or
nullif not defined. - contentType - Variable in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
-
Content type.
- contentType - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The file items content type.
- contentType - Variable in exception org.apache.commons.fileupload2.core.FileUploadContentTypeException
-
The guilty content type.
- contextDestroyed(ServletContextEvent) - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaFileCleaner
-
Called when the web application is being destroyed.
- contextDestroyed(ServletContextEvent) - Method in class org.apache.commons.fileupload2.javax.JavaxFileCleaner
-
Called when the web application is being destroyed.
- contextInitialized(ServletContextEvent) - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaFileCleaner
-
Called when the web application is initialized.
- contextInitialized(ServletContextEvent) - Method in class org.apache.commons.fileupload2.javax.JavaxFileCleaner
-
Called when the web application is initialized.
- COUNTER - Static variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
Counter used in unique identifier generation.
- CR - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The Carriage Return ASCII character value.
- currentFieldName - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The current items field name.
- currentItem - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The item, which we currently process.
D
- DASH - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The dash (-) ASCII character value.
- decode(byte[], OutputStream) - Static method in class org.apache.commons.fileupload2.core.QuotedPrintableDecoder
-
Decodes the encoded byte data writing it to the given output stream.
- decodeText(String) - Static method in class org.apache.commons.fileupload2.core.MimeUtils
-
Decodes a string of text obtained from a mail header into its proper form.
- decodeText(String) - Static method in class org.apache.commons.fileupload2.core.RFC2231Utils
-
Decodes a string of text obtained from a HTTP header as per RFC 2231 Eg 1.
us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2Awill be decoded toThis is ***fun***Eg 2.iso-8859-1'en'%A3%20ratewill be decoded to£ rate. - decodeWord(String) - Static method in class org.apache.commons.fileupload2.core.MimeUtils
-
Decodes a string using the RFC 2047 rules for an "encoded-word" type.
- DEFAULT_BUFSIZE - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The default length of the buffer used for processing a request.
- DEFAULT_CHARSET - Static variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
Default content charset to be used when no explicit charset parameter is provided by the sender.
- DEFAULT_THRESHOLD - Static variable in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
The default threshold in bytes above which uploads will be stored on disk.
- delete() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
- delete() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
- dfos - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
Output stream for this item.
- discardBodyData() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Reads
body-datafrom the currentencapsulationand discards it. - DiskFileItem - Class in org.apache.commons.fileupload2.core
-
The default implementation of the
FileIteminterface. - DiskFileItem(String, String, boolean, String, int, Path, FileItemHeaders, Charset) - Constructor for class org.apache.commons.fileupload2.core.DiskFileItem
-
Constructs a new
DiskFileIteminstance. - DiskFileItem.Builder - Class in org.apache.commons.fileupload2.core
-
Builds a new
DiskFileIteminstance. - DiskFileItemFactory - Class in org.apache.commons.fileupload2.core
-
The default
FileItemFactoryimplementation. - DiskFileItemFactory(Path, int, Charset, FileCleaningTracker) - Constructor for class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Constructs a preconfigured instance of this class.
- DiskFileItemFactory.Builder - Class in org.apache.commons.fileupload2.core
-
Builds a new
DiskFileItemFactoryinstance.
E
- ENCODED_TOKEN_FINISHER - Static variable in class org.apache.commons.fileupload2.core.MimeUtils
-
If the text contains any encoded tokens, those tokens will terminate with "=?".
- ENCODED_TOKEN_MARKER - Static variable in class org.apache.commons.fileupload2.core.MimeUtils
-
If the text contains any encoded tokens, those tokens will be marked with "=?".
- eof - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Whether we have seen the end of the file.
F
- FIELD_SEPARATOR - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
A byte sequence that that follows a delimiter that will be followed by an encapsulation (
CRLF). - fieldName - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The name of the form field as provided by the browser.
- fieldName - Variable in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
-
Field name.
- fieldName - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The file items field name.
- fieldName - Variable in exception org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
-
Field name of the item, which caused the exception.
- FILE_CLEANING_TRACKER_ATTRIBUTE - Static variable in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaFileCleaner
-
Attribute name, which is used for storing an instance of
FileCleaningTrackerin the web application. - FILE_CLEANING_TRACKER_ATTRIBUTE - Static variable in class org.apache.commons.fileupload2.javax.JavaxFileCleaner
-
Attribute name, which is used for storing an instance of
FileCleaningTrackerin the web application. - fileCleaningTracker - Variable in class org.apache.commons.fileupload2.core.DiskFileItemFactory.Builder
-
The instance of
FileCleaningTracker, which is responsible for deleting temporary files. - fileCleaningTracker - Variable in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
The instance of
FileCleaningTracker, which is responsible for deleting temporary files. - fileCleaningTracker - Variable in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
-
The instance of
FileCleaningTracker, which is responsible for deleting temporary files. - fileCountMax - Variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
The maximum permitted number of files that may be uploaded in a single request.
- FileItem<F extends FileItem<F>> - Interface in org.apache.commons.fileupload2.core
-
This class represents a file or form item that was received within a
multipart/form-dataPOST request. - fileItemBuilder() - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory
- fileItemBuilder() - Method in interface org.apache.commons.fileupload2.core.FileItemFactory
-
Creates a new AbstractFileItemBuilder.
- fileItemFactory - Variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
The factory to use to create new form items.
- FileItemFactory<I extends FileItem<I>> - Interface in org.apache.commons.fileupload2.core
-
Creates
FileIteminstances. - FileItemFactory.AbstractFileItemBuilder<I extends FileItem<I>,
B extends FileItemFactory.AbstractFileItemBuilder<I, B>> - Class in org.apache.commons.fileupload2.core -
Abstracts building for subclasses.
- fileItemHeaders - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The file items headers.
- fileItemHeaders - Variable in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
-
File item headers.
- FileItemHeaders - Interface in org.apache.commons.fileupload2.core
-
This class provides support for accessing the headers for a file or form item that was received within a
multipart/form-dataPOST request. - FileItemHeadersImpl - Class in org.apache.commons.fileupload2.core
-
Default implementation of the
FileItemHeadersinterface. - FileItemHeadersImpl() - Constructor for class org.apache.commons.fileupload2.core.FileItemHeadersImpl
- FileItemHeadersProvider<T extends FileItemHeadersProvider<T>> - Interface in org.apache.commons.fileupload2.core
-
Provides access to headers.
- FileItemInput - Interface in org.apache.commons.fileupload2.core
-
Provides access to a file or form item that was received within a
multipart/form-dataPOST request. - FileItemInput.ItemSkippedException - Exception in org.apache.commons.fileupload2.core
-
This exception is thrown, if an attempt is made to read data from the
InputStream, which has been returned byFileItemInput.getInputStream(), afterIterator.hasNext()has been invoked on the iterator, which created theFileItemInput. - FileItemInputImpl - Class in org.apache.commons.fileupload2.core
-
Default implementation of
FileItemInput. - FileItemInputImpl(FileItemInputIteratorImpl, String, String, String, boolean, long) - Constructor for class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Creates a new instance.
- FileItemInputIterator - Interface in org.apache.commons.fileupload2.core
-
An iterator, as returned by
AbstractFileUpload.getItemIterator(RequestContext). - fileItemInputIteratorImpl - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The File Item iterator implementation.
- FileItemInputIteratorImpl - Class in org.apache.commons.fileupload2.core
-
The iterator returned by
AbstractFileUpload.getItemIterator(RequestContext). - FileItemInputIteratorImpl(AbstractFileUpload<?, ?, ?>, RequestContext) - Constructor for class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Constructs a new instance.
- fileName - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The original file name in the user's file system.
- fileName - Variable in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
-
File name.
- fileName - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The file items file name.
- fileName - Variable in exception org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
-
File name of the item, which caused the exception.
- FILENAME_KEY - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
File name parameter key.
- fileSizeMax - Variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
The maximum size permitted for a single uploaded file, as opposed to
AbstractFileUpload.sizeMax. - fileSizeMax - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The maximum allowed size of a single uploaded file.
- fileUpload - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The file uploads processing utility.
- FileUploadBoundaryException(String) - Constructor for exception org.apache.commons.fileupload2.core.MultipartInput.FileUploadBoundaryException
-
Constructs an instance with the specified detail message.
- FileUploadByteCountLimitException - Exception in org.apache.commons.fileupload2.core
-
Signals that a file size exceeds the configured maximum.
- FileUploadByteCountLimitException(String, long, long, String, String) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
-
Constructs an instance with the specified detail message, and actual and permitted sizes.
- FileUploadContentTypeException - Exception in org.apache.commons.fileupload2.core
-
Signals that a request is not a multipart request.
- FileUploadContentTypeException(String, String) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadContentTypeException
-
Constructs an instance with the specified detail message.
- FileUploadContentTypeException(String, Throwable) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadContentTypeException
-
Constructs an instance with the specified detail message and cause.
- FileUploadException - Exception in org.apache.commons.fileupload2.core
-
Signals errors encountered while processing the request.
- FileUploadException(String) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadException
-
Constructs an instance with a given detail message.
- FileUploadException(String, Throwable) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadException
-
Constructs an instance with the given detail message and cause.
- FileUploadFileCountLimitException - Exception in org.apache.commons.fileupload2.core
-
Signals that a request contains more files than the specified limit.
- FileUploadFileCountLimitException(String, long, long) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadFileCountLimitException
-
Constructs an instance.
- FileUploadSizeException - Exception in org.apache.commons.fileupload2.core
-
Signals that a requests permitted size is exceeded.
- FileUploadSizeException(String, long, long) - Constructor for exception org.apache.commons.fileupload2.core.FileUploadSizeException
-
Constructs an instance.
- findByte(byte, int) - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Searches for a byte of specified value in the
buffer, starting at the specifiedposition. - findNextItem() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Finds the next item, if any.
- findSeparator() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Searches for the
boundaryin thebufferregion delimited byheadandtail. - findSeparator() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Called for finding the separator.
- FORM_DATA - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Content-disposition value for form data.
- formField - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Whether the file item is a form field.
- fromHex(String) - Static method in class org.apache.commons.fileupload2.core.RFC2231Utils
-
Converts
textto their corresponding Hex value.
G
- get() - Method in class org.apache.commons.fileupload2.core.DiskFileItem.Builder
-
Constructs a new instance.
- get() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the contents of the file as an array of bytes.
- get() - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory.Builder
-
Constructs a new instance.
- get() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the contents of the file item as a byte array.
- get() - Method in class org.apache.commons.fileupload2.core.MultipartInput.Builder
-
Constructs a new instance.
- getActualSize() - Method in exception org.apache.commons.fileupload2.core.FileUploadSizeException
-
Gets the actual size of the request.
- getBoundary(String) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the boundary from the
Content-typeheader. - getBytesRead() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Gets the number of bytes, which have been read by the stream.
- getCharacterEncoding() - Method in interface org.apache.commons.fileupload2.core.RequestContext
-
Gets the character encoding for the request.
- getCharacterEncoding() - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletRequestContext
-
Gets the character encoding for the request.
- getCharacterEncoding() - Method in class org.apache.commons.fileupload2.javax.JavaxServletRequestContext
-
Gets the character encoding for the request.
- getCharset() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the content charset passed by the agent or
nullif not defined. - getCharset() - Method in interface org.apache.commons.fileupload2.core.RequestContext
-
Gets the character encoding for the request or null if unspecified.
- getCharsetDefault() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the default charset for use when no explicit charset parameter is provided by the sender.
- getCharsetDefault() - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Gets the default charset for use when no explicit charset parameter is provided by the sender.
- getContentLength() - Method in class org.apache.commons.fileupload2.core.AbstractRequestContext
-
Gets the content length of the request.
- getContentLength() - Method in interface org.apache.commons.fileupload2.core.RequestContext
-
Gets the content length of the request.
- getContentLength(FileItemHeaders) - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- getContentType() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the content type passed by the agent or
nullif not defined. - getContentType() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the content type passed by the browser or
nullif not defined. - getContentType() - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- getContentType() - Method in interface org.apache.commons.fileupload2.core.FileItemInput
-
Gets the content type passed by the browser or
nullif not defined. - getContentType() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Gets the content type, or null.
- getContentType() - Method in exception org.apache.commons.fileupload2.core.FileUploadContentTypeException
- getContentType() - Method in interface org.apache.commons.fileupload2.core.RequestContext
-
Gets the content type of the request.
- getContentType() - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletRequestContext
-
Gets the content type of the request.
- getContentType() - Method in class org.apache.commons.fileupload2.javax.JavaxServletRequestContext
-
Gets the content type of the request.
- getFieldName() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the name of the field in the multipart form corresponding to this file item.
- getFieldName() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the name of the field in the multipart form corresponding to this file item.
- getFieldName() - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- getFieldName() - Method in interface org.apache.commons.fileupload2.core.FileItemInput
-
Gets the name of the field in the multipart form corresponding to this file item.
- getFieldName() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Gets the items field name.
- getFieldName() - Method in exception org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
-
Gets the field name of the item, which caused the exception.
- getFieldName(String) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the field name, which is given by the content-disposition header.
- getFieldName(FileItemHeaders) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the field name from the
Content-dispositionheader. - getFileCleaningTracker() - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Gets the tracker, which is responsible for deleting temporary files.
- getFileCleaningTracker() - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- getFileCleaningTracker(ServletContext) - Static method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaFileCleaner
-
Gets the instance of
FileCleaningTracker, which is associated with the givenServletContext. - getFileCleaningTracker(ServletContext) - Static method in class org.apache.commons.fileupload2.javax.JavaxFileCleaner
-
Gets the instance of
FileCleaningTracker, which is associated with the givenServletContext. - getFileCountMax() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the maximum number of files allowed in a single request.
- getFileItemFactory() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the factory class used when creating file items.
- getFileItemHeaders() - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- getFileName() - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- getFileName() - Method in exception org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
-
Gets the file name of the item, which caused the exception.
- getFileName(String) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the given content-disposition headers file name.
- getFileName(FileItemHeaders) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the file name from the
Content-dispositionheader. - getFileSizeMax() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the maximum allowed size of a single uploaded file, as opposed to
AbstractFileUpload.getSizeMax(). - getFileSizeMax() - Method in interface org.apache.commons.fileupload2.core.FileItemInputIterator
-
Gets the maximum size of a single file.
- getFileSizeMax() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- getHeader(String) - Method in interface org.apache.commons.fileupload2.core.FileItemHeaders
-
Gets the value of the specified part header as a
String. - getHeader(String) - Method in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
-
Gets the value of the specified part header as a
String. - getHeaderCharset() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the character encoding used when reading the headers of an individual part.
- getHeaderCharset() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Gets the character encoding used when reading the headers of an individual part.
- getHeaderNames() - Method in interface org.apache.commons.fileupload2.core.FileItemHeaders
-
Gets an
Iteratorof all the header names. - getHeaderNames() - Method in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
-
Gets an
Iteratorof all the header names. - getHeaders() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the file item headers.
- getHeaders() - Method in interface org.apache.commons.fileupload2.core.FileItemHeadersProvider
-
Gets the collection of headers defined locally within this item.
- getHeaders() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Gets the headers.
- getHeaders(String) - Method in interface org.apache.commons.fileupload2.core.FileItemHeaders
-
Gets all the values of the specified item header as an
IteratorofStringobjects. - getHeaders(String) - Method in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
-
Gets all the values of the specified item header as an
IteratorofStringobjects. - getInputStream() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets an
InputStreamthat can be used to retrieve the contents of the file. - getInputStream() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets an
InputStreamthat can be used to retrieve the contents of the file. - getInputStream() - Method in interface org.apache.commons.fileupload2.core.FileItemInput
-
Opens an
InputStream, which allows to read the items contents. - getInputStream() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Gets the input stream, which may be used to read the items contents.
- getInputStream() - Method in interface org.apache.commons.fileupload2.core.RequestContext
-
Gets the input stream for the request.
- getInputStream() - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletRequestContext
-
Gets the input stream for the request.
- getInputStream() - Method in class org.apache.commons.fileupload2.javax.JavaxServletRequestContext
-
Gets the input stream for the request.
- getItemIterator(HttpServletRequest) - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Gets an RFC 1867 compliant
multipart/form-datafile item iterator. - getItemIterator(HttpServletRequest) - Method in class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Gets an RFC 1867 compliant
multipart/form-datafile item iterator. - getItemIterator(RequestContext) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets an RFC 1867 compliant
multipart/form-datastream. - getItemIterator(R) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets a file item iterator.
- getJavaCharset(String) - Static method in class org.apache.commons.fileupload2.core.RFC2231Utils
- getList(String) - Method in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
- getMultiPartInput() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- getName() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the original file name in the client's file system.
- getName() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the original file name in the client's file system, as provided by the browser (or other client software).
- getName() - Method in interface org.apache.commons.fileupload2.core.FileItemInput
-
Gets the original file name in the client's file system, as provided by the browser (or other client software).
- getName() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Gets the file name.
- getOutputStream() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets an
OutputStreamthat can be used for storing the contents of the file. - getOutputStream() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets an
OutputStreamthat can be used for storing the contents of the file. - getParsedHeaders(String) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Parses the
header-partand returns as key/value pairs. - getPath() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the
Pathfor theFileItem's data's temporary location on the disk. - getPermitted() - Method in exception org.apache.commons.fileupload2.core.FileUploadSizeException
-
Gets the limit size of the request.
- getProgressListener() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the progress listener.
- getRepository() - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Gets the directory used to temporarily store files that are larger than the configured size threshold.
- getRequest() - Method in class org.apache.commons.fileupload2.core.AbstractRequestContext
- getSize() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the size of the file.
- getSize() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the size of the file item.
- getSizeMax() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Gets the maximum allowed size of a complete request, as opposed to
AbstractFileUpload.getFileSizeMax(). - getSizeMax() - Method in interface org.apache.commons.fileupload2.core.FileItemInputIterator
-
Gets the maximum size of the complete HTTP request.
- getSizeMax() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- getString() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the contents of the file as a String, using the default character encoding.
- getString() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the contents of the file item as a String, using the default character encoding.
- getString(Charset) - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets the contents of the file as a String, using the specified encoding.
- getString(Charset) - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Gets the contents of the file item as a String, using the specified encoding.
- getTempFile() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Creates and returns a
Filerepresenting a uniquely named temporary file in the configured repository path. - getThreshold() - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
Gets the size threshold beyond which files are written directly to disk.
- getToken(boolean) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
A helper method to process the parsed token.
- getUniqueId() - Static method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Gets an identifier that is unique within the class loader used to load this class, but does not have random-like appearance.
H
- hasChar() - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Tests if there any characters left to parse.
- hasEncodedValue(String) - Static method in class org.apache.commons.fileupload2.core.RFC2231Utils
-
Tests if asterisk (*) at the end of parameter name to indicate, if it has charset and language information to decode the value.
- hasNext() - Method in interface org.apache.commons.fileupload2.core.FileItemInputIterator
-
Tests whether another instance of
FileItemInputis available. - hasNext() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Tests whether another instance of
FileItemInputis available. - head - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The index of first valid character in the buffer.
- HEADER_PART_SIZE_MAX - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The maximum length of
header-partthat will be processed (10 kilobytes = 10240 bytes.). - HEADER_SEPARATOR - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
A byte sequence that marks the end of
header-part(CRLFCRLF). - headerCharset - Variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
The content encoding to use when reading part headers.
- headerCharset - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The content encoding to use when reading headers.
- headerNameToValueListMap - Variable in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
-
Map of
Stringkeys to aListofStringinstances. - headers - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The headers, if any.
- HEX_DECODE - Static variable in class org.apache.commons.fileupload2.core.RFC2231Utils
-
The Hexadecimal decode value.
- HEX_DIGITS - Static variable in class org.apache.commons.fileupload2.core.RFC2231Utils
-
The Hexadecimal values char array.
- hexToBinary(byte) - Static method in class org.apache.commons.fileupload2.core.QuotedPrintableDecoder
-
Converts a hexadecimal digit to the binary value it represents.
I
- i1 - Variable in class org.apache.commons.fileupload2.core.ParameterParser
-
Start of a token.
- i2 - Variable in class org.apache.commons.fileupload2.core.ParameterParser
-
End of a token.
- init(AbstractFileUpload<?, ?, ?>, RequestContext) - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- input - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The input stream from which data is read.
- inputStream - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The file items input stream.
- inputStreamClosed - Variable in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
The file items input stream closed flag.
- isClosed() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
- isFormField - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
Whether or not this item is a simple form field.
- isFormField - Variable in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
-
Is this a form field.
- isFormField() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Tests whether or not a
FileIteminstance represents a simple form field. - isFormField() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Tests whether or not a
FileIteminstance represents a simple form field. - isFormField() - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- isFormField() - Method in interface org.apache.commons.fileupload2.core.FileItemInput
-
Tests whether or not a
FileIteminstance represents a simple form field. - isFormField() - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Tests whether this is a form field.
- isInMemory() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Provides a hint as to whether or not the file contents will be read from memory.
- isInMemory() - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Tests a hint as to whether or not the file contents will be read from memory.
- isLowerCaseNames() - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Tests
trueif parameter names are to be converted to lower case when name/value pairs are parsed. - isMultipartContent(HttpServletRequest) - Static method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Tests whether the request contains multipart content.
- isMultipartContent(HttpServletRequest) - Static method in class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Tests whether the request contains multipart content.
- isMultipartContent(RequestContext) - Static method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Utility method that determines whether the request contains multipart content.
- isOneOf(char, char[]) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Tests if the given character is present in the array of characters.
- ItemInputStream() - Constructor for class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Creates a new instance.
- items - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Number of items, which have been read so far.
- ItemSkippedException(String) - Constructor for exception org.apache.commons.fileupload2.core.FileItemInput.ItemSkippedException
-
Constructs an instance with a given detail message.
- itemValid - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Whether the current item may still be read.
J
- JakartaFileCleaner - Class in org.apache.commons.fileupload2.jakarta.servlet5
-
A servlet context listener, which ensures that the
FileCleaningTracker's reaper thread is terminated, when the web application is destroyed. - JakartaFileCleaner() - Constructor for class org.apache.commons.fileupload2.jakarta.servlet5.JakartaFileCleaner
- JakartaServletDiskFileUpload - Class in org.apache.commons.fileupload2.jakarta.servlet5
-
A JakartaServletFileUpload for
DiskFileItemandDiskFileItemFactory. - JakartaServletDiskFileUpload() - Constructor for class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletDiskFileUpload
- JakartaServletDiskFileUpload(DiskFileItemFactory) - Constructor for class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletDiskFileUpload
- JakartaServletFileUpload<I extends FileItem<I>,
F extends FileItemFactory<I>> - Class in org.apache.commons.fileupload2.jakarta.servlet5 -
High level API for processing file uploads.
- JakartaServletFileUpload() - Constructor for class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Constructs an uninitialized instance of this class.
- JakartaServletFileUpload(F) - Constructor for class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Constructs an instance of this class which uses the supplied factory to create
FileIteminstances. - JakartaServletRequestContext - Class in org.apache.commons.fileupload2.jakarta.servlet5
-
Provides access to the request information needed for a request made to an HTTP servlet.
- JakartaServletRequestContext(HttpServletRequest) - Constructor for class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletRequestContext
-
Constructs a context for this request.
- javaCharset(String) - Static method in class org.apache.commons.fileupload2.core.MimeUtils
-
Translate a MIME standard character set name into the Java equivalent.
- JavaxFileCleaner - Class in org.apache.commons.fileupload2.javax
-
A servlet context listener, which ensures that the
FileCleaningTracker's reaper thread is terminated, when the web application is destroyed. - JavaxFileCleaner() - Constructor for class org.apache.commons.fileupload2.javax.JavaxFileCleaner
- JavaxServletDiskFileUpload - Class in org.apache.commons.fileupload2.javax
-
A JavaxServletFileUpload for
DiskFileItemandDiskFileItemFactory. - JavaxServletDiskFileUpload() - Constructor for class org.apache.commons.fileupload2.javax.JavaxServletDiskFileUpload
- JavaxServletDiskFileUpload(DiskFileItemFactory) - Constructor for class org.apache.commons.fileupload2.javax.JavaxServletDiskFileUpload
- JavaxServletFileUpload<I extends FileItem<I>,
F extends FileItemFactory<I>> - Class in org.apache.commons.fileupload2.javax -
High level API for processing file uploads.
- JavaxServletFileUpload() - Constructor for class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Constructs an uninitialized instance of this class.
- JavaxServletFileUpload(F) - Constructor for class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Constructs an instance of this class which uses the supplied factory to create
FileIteminstances. - JavaxServletRequestContext - Class in org.apache.commons.fileupload2.javax
-
Provides access to the request information needed for a request made to an HTTP servlet.
- JavaxServletRequestContext(HttpServletRequest) - Constructor for class org.apache.commons.fileupload2.javax.JavaxServletRequestContext
-
Constructs a context for this request.
K
- keepRegion - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
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.fileupload2.core.ParameterParser
-
Maximum position in the string.
- LF - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The Line Feed ASCII character value.
- LINEAR_WHITESPACE - Static variable in class org.apache.commons.fileupload2.core.MimeUtils
-
The linear whitespace chars sequence.
- lowerCaseNames - Variable in class org.apache.commons.fileupload2.core.ParameterParser
-
Whether names stored in the map should be converted to lower case.
M
- makeAvailable() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Attempts to read more data.
- MalformedStreamException(String) - Constructor for exception org.apache.commons.fileupload2.core.MultipartInput.MalformedStreamException
-
Constructs an
MalformedStreamExceptionwith the specified detail message. - MalformedStreamException(String, Throwable) - Constructor for exception org.apache.commons.fileupload2.core.MultipartInput.MalformedStreamException
-
Constructs an
MalformedStreamExceptionwith the specified detail message. - MASK - Static variable in class org.apache.commons.fileupload2.core.RFC2231Utils
-
The Hexadecimal representation of 127.
- MASK_128 - Static variable in class org.apache.commons.fileupload2.core.RFC2231Utils
-
The Hexadecimal representation of 128.
- MIME2JAVA - Static variable in class org.apache.commons.fileupload2.core.MimeUtils
-
Mappings between MIME and Java charset.
- MimeUtils - Class in org.apache.commons.fileupload2.core
-
Utility class to decode MIME texts.
- MimeUtils() - Constructor for class org.apache.commons.fileupload2.core.MimeUtils
-
Hidden constructor, this class must not be instantiated.
- MULTIPART - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Part of HTTP content type header.
- MULTIPART_FORM_DATA - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
HTTP content type header for multipart forms.
- MULTIPART_MIXED - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
HTTP content type header for multiple uploads.
- multiPartBoundary - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The boundary, which separates the various parts.
- multiPartInput - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The multi part stream to process.
- MultipartInput - Class in org.apache.commons.fileupload2.core
-
Low-level API for processing file uploads.
- MultipartInput(InputStream, byte[], int, MultipartInput.ProgressNotifier) - Constructor for class org.apache.commons.fileupload2.core.MultipartInput
-
Constructs a
MultipartInputwith a custom size buffer. - MultipartInput.Builder - Class in org.apache.commons.fileupload2.core
-
Builds a new
MultipartInputinstance. - MultipartInput.FileUploadBoundaryException - Exception in org.apache.commons.fileupload2.core
-
Signals an attempt to set an invalid boundary token.
- MultipartInput.ItemInputStream - Class in org.apache.commons.fileupload2.core
-
An
InputStreamfor reading an items contents. - MultipartInput.MalformedStreamException - Exception in org.apache.commons.fileupload2.core
-
Signals that the input stream fails to follow the required syntax.
- MultipartInput.ProgressNotifier - Class in org.apache.commons.fileupload2.core
-
Internal class, which is used to invoke the
ProgressListener.
N
- NAME_KEY - Static variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Name parameter key.
- newFileItemHeaders() - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Creates a new instance of
FileItemHeaders. - newFileItemHeaders() - Static method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- newInputStream() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Creates a new
MultipartInput.ItemInputStream. - next() - Method in interface org.apache.commons.fileupload2.core.FileItemInputIterator
-
Returns the next available
FileItemInput. - next() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Returns the next available
FileItemInput. - NOP - Static variable in interface org.apache.commons.fileupload2.core.ProgressListener
-
Nop implementation.
- noteBytesRead(int) - Method in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Called to indicate that bytes have been read.
- noteItem() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Called to indicate, that a new file item has been detected.
- notifier - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The progress notifier, if any, or null.
- notifyListener() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Called for notifying the listener.
O
- org.apache.commons.fileupload2.core - package org.apache.commons.fileupload2.core
-
A component for handling HTML file uploads as specified by RFC 1867.
- org.apache.commons.fileupload2.jakarta.servlet5 - package org.apache.commons.fileupload2.jakarta.servlet5
-
An implementation of
AbstractFileUploadfor use in servlets conforming to the namespacejakarta.servlet. - org.apache.commons.fileupload2.javax - package org.apache.commons.fileupload2.javax
-
An implementation of
AbstractFileUploadfor use in servlets conforming to JSR 53.
P
- pad - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
The number of bytes, which must be hold, because they might be a part of the boundary.
- ParameterParser - Class in org.apache.commons.fileupload2.core
-
A simple parser intended to parse sequences of name/value pairs.
- ParameterParser() - Constructor for class org.apache.commons.fileupload2.core.ParameterParser
-
Default ParameterParser constructor.
- parse(char[], char) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Parses a map of name/value pairs from the given array of characters.
- parse(char[], int, int, char) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Parses a map of name/value pairs from the given array of characters.
- parse(String, char) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Parses a map of name/value pairs from the given string.
- parse(String, char[]) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Parses a map of name/value pairs from the given string.
- parseEndOfLine(String, int) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Skips bytes until the end of the current line.
- parseHeaderLine(FileItemHeaders, String) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Parses the next header line.
- parseParameterMap(HttpServletRequest) - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseParameterMap(HttpServletRequest) - Method in class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseParameterMap(RequestContext) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseParameterMap(R) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseQuotedToken(char[]) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Parses out a token until any of the given terminators is encountered outside the quotation marks.
- parseRequest(HttpServletRequest) - Method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseRequest(HttpServletRequest) - Method in class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseRequest(RequestContext) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseRequest(R) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Parses an RFC 1867 compliant
multipart/form-datastream. - parseToken(char[]) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Parses out a token until any of the given terminators is encountered.
- permitted - Variable in exception org.apache.commons.fileupload2.core.FileUploadSizeException
-
The maximum permitted size of the request.
- pos - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
The current offset in the buffer.
- pos - Variable in class org.apache.commons.fileupload2.core.ParameterParser
-
Current position in the string.
- POST_METHOD - Static variable in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaServletFileUpload
-
Constant for HTTP POST method.
- POST_METHOD - Static variable in class org.apache.commons.fileupload2.javax.JavaxServletFileUpload
-
Constant for HTTP POST method.
- progressListener - Variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
The progress listener.
- progressListener - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
The listener to invoke.
- ProgressListener - Interface in org.apache.commons.fileupload2.core
-
Receives progress information.
- progressNotifier - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The notifier, which used for triggering the
ProgressListener. - progressNotifier - Variable in class org.apache.commons.fileupload2.core.MultipartInput.Builder
-
Progress notifier.
- ProgressNotifier(ProgressListener, long) - Constructor for class org.apache.commons.fileupload2.core.MultipartInput.ProgressNotifier
-
Creates a new instance with the given listener and content length.
Q
- QUOTEDPRINTABLE_ENCODING_MARKER - Static variable in class org.apache.commons.fileupload2.core.MimeUtils
-
The marker to indicate text is encoded with QuotedPrintable algorithm.
- QuotedPrintableDecoder - Class in org.apache.commons.fileupload2.core
- QuotedPrintableDecoder() - Constructor for class org.apache.commons.fileupload2.core.QuotedPrintableDecoder
-
Hidden constructor, this class must not be instantiated.
R
- read() - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Reads the next byte in the stream.
- read(byte[], int, int) - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Reads bytes into the given buffer.
- readBodyData(OutputStream) - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Reads
body-datafrom the currentencapsulationand writes its contents into the outputStream. - readBoundary() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Skips a
boundarytoken, and checks whether moreencapsulationsare contained in the stream. - readByte() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Reads a byte from the
buffer, and refills it as necessary. - readHeaders() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Reads the
header-partof the currentencapsulation. - repository - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The directory in which uploaded files will be stored, if stored on disk.
- repository - Variable in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
The directory in which uploaded files will be stored, if stored on disk.
- request - Variable in class org.apache.commons.fileupload2.core.AbstractRequestContext
-
The request.
- requestContext - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The request context.
- RequestContext - Interface in org.apache.commons.fileupload2.core
-
Abstracts access to the request information needed for file uploads.
- RFC2231Utils - Class in org.apache.commons.fileupload2.core
-
Utility class to decode/encode character set on HTTP Header fields based on RFC 2231.
- RFC2231Utils() - Constructor for class org.apache.commons.fileupload2.core.RFC2231Utils
-
Private constructor so that no instances can be created.
S
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.FileItemInput.ItemSkippedException
-
The exceptions serial version UID, which is being used when serializing an exception instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.FileUploadByteCountLimitException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.FileUploadContentTypeException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.FileUploadException
-
Serial version UID, being used, if the exception is serialized.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.FileUploadFileCountLimitException
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.FileUploadSizeException
-
Serial version UID, being used, if serialized.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.MultipartInput.FileUploadBoundaryException
-
The UID to use when serializing this instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload2.core.MultipartInput.MalformedStreamException
-
The UID to use when serializing this instance.
- setBoundary(byte[]) - Method in class org.apache.commons.fileupload2.core.MultipartInput.Builder
-
Sets the boundary.
- setBoundary(byte[]) - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Changes the boundary token used for partitioning the stream.
- setCharsetDefault(Charset) - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Sets the default charset for use when no explicit charset parameter is provided by the sender.
- setContentType(String) - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- setFieldName(String) - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Sets the field name used to reference this file item.
- setFieldName(String) - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Sets the field name used to reference this file item.
- setFieldName(String) - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- setFileCleaningTracker(ServletContext, FileCleaningTracker) - Static method in class org.apache.commons.fileupload2.jakarta.servlet5.JakartaFileCleaner
-
Sets the instance of
FileCleaningTracker, which is associated with the givenServletContext. - setFileCleaningTracker(ServletContext, FileCleaningTracker) - Static method in class org.apache.commons.fileupload2.javax.JavaxFileCleaner
-
Sets the instance of
FileCleaningTracker, which is associated with the givenServletContext. - setFileCleaningTracker(FileCleaningTracker) - Method in class org.apache.commons.fileupload2.core.DiskFileItemFactory.Builder
-
Sets the tracker, which is responsible for deleting temporary files.
- setFileCleaningTracker(FileCleaningTracker) - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- setFileCountMax(long) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Sets the maximum number of files allowed per request.
- setFileItemFactory(F) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Sets the factory class to use when creating file items.
- setFileItemHeaders(FileItemHeaders) - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- setFileName(String) - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- setFileSizeMax(long) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Sets the maximum allowed size of a single uploaded file, as opposed to
AbstractFileUpload.getSizeMax(). - setFileSizeMax(long) - Method in interface org.apache.commons.fileupload2.core.FileItemInputIterator
-
Sets the maximum size of a single file.
- setFileSizeMax(long) - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- setFormField(boolean) - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Specifies whether or not a
FileIteminstance represents a simple form field. - setFormField(boolean) - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Sets whether or not a
FileIteminstance represents a simple form field. - setFormField(boolean) - Method in class org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder
- setHeaderCharset(Charset) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Specifies the character encoding to be used when reading the headers of individual part.
- setHeaderCharset(Charset) - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Sets the character encoding to be used when reading the headers of individual parts.
- setHeaders(FileItemHeaders) - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Sets the file item headers.
- setHeaders(FileItemHeaders) - Method in interface org.apache.commons.fileupload2.core.FileItemHeadersProvider
-
Sets the headers read from within an item.
- setHeaders(FileItemHeaders) - Method in class org.apache.commons.fileupload2.core.FileItemInputImpl
-
Sets the file item headers.
- setLowerCaseNames(boolean) - Method in class org.apache.commons.fileupload2.core.ParameterParser
-
Sets the flag if parameter names are to be converted to lower case when name/value pairs are parsed.
- setProgressListener(ProgressListener) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Sets the progress listener.
- setProgressNotifier(MultipartInput.ProgressNotifier) - Method in class org.apache.commons.fileupload2.core.MultipartInput.Builder
-
Sets the progress notifier.
- setSizeMax(long) - Method in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
Sets the maximum allowed size of a complete request, as opposed to
AbstractFileUpload.setFileSizeMax(long). - setSizeMax(long) - Method in interface org.apache.commons.fileupload2.core.FileItemInputIterator
-
Sets the maximum size of the complete HTTP request.
- setSizeMax(long) - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- size - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The size of the item, in bytes.
- sizeMax - Variable in class org.apache.commons.fileupload2.core.AbstractFileUpload
-
The maximum size permitted for the complete request, as opposed to
AbstractFileUpload.fileSizeMax. - sizeMax - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
The maximum allowed size of a complete request.
- skip(long) - Method in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
Skips the given number of bytes.
- skipPreamble - Variable in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
-
Whether we are currently skipping the preamble.
- skipPreamble() - Method in class org.apache.commons.fileupload2.core.MultipartInput
-
Finds the beginning of the first
encapsulation. - STREAM_TERMINATOR - Static variable in class org.apache.commons.fileupload2.core.MultipartInput
-
A byte sequence that that follows a delimiter of the last encapsulation in the stream (
--). - stripDelimiter(String) - Static method in class org.apache.commons.fileupload2.core.RFC2231Utils
-
If
paramNamehas Asterisk (*) at the end, it will be stripped off, else the passed value will be returned.
T
- tail - Variable in class org.apache.commons.fileupload2.core.MultipartInput
-
The index of last valid character in the buffer + 1.
- tempFile - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The temporary file to use.
- threshold - Variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
The threshold above which uploads will be stored on disk.
- threshold - Variable in class org.apache.commons.fileupload2.core.DiskFileItemFactory
-
The threshold above which uploads will be stored on disk.
- toLowerCase(String) - Method in class org.apache.commons.fileupload2.core.FileItemHeadersImpl
- toString() - Method in class org.apache.commons.fileupload2.core.AbstractRequestContext
-
Returns a string representation of this object.
- toString() - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Returns a string representation of this object.
- total - Variable in class org.apache.commons.fileupload2.core.MultipartInput.ItemInputStream
-
The number of bytes, which have been read so far.
U
- UID - Static variable in class org.apache.commons.fileupload2.core.DiskFileItem
-
UID used in unique file name generation.
- unwrap() - Method in class org.apache.commons.fileupload2.core.FileItemInputIteratorImpl
- update(long, long, int) - Method in interface org.apache.commons.fileupload2.core.ProgressListener
-
Updates the listeners status information.
- UPPER_NIBBLE_SHIFT - Static variable in class org.apache.commons.fileupload2.core.QuotedPrintableDecoder
-
The shift value required to create the upper nibble from the first of 2 byte values converted from ASCII hex.
W
- write(Path) - Method in class org.apache.commons.fileupload2.core.DiskFileItem
-
Writes an uploaded item to disk.
- write(Path) - Method in interface org.apache.commons.fileupload2.core.FileItem
-
Writes an uploaded item to disk.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form