DiskFileItemFactory
instead.@Deprecated public class DefaultFileItemFactory extends DiskFileItemFactory
The default FileItemFactory
implementation. This implementation creates
FileItem
instances which keep their
content either in memory, for smaller items, or in a temporary file on disk,
for larger items. The size threshold, above which content will be stored on
disk, is configurable, as is the directory in which temporary files will be
created.
System.getProperty("java.io.tmpdir")
.DEFAULT_SIZE_THRESHOLD
Constructor and Description |
---|
DefaultFileItemFactory()
Deprecated.
1.1 Use
DiskFileItemFactory instead. |
DefaultFileItemFactory(int sizeThreshold,
java.io.File repository)
Deprecated.
1.1 Use
DiskFileItemFactory instead. |
Modifier and Type | Method and Description |
---|---|
FileItem |
createItem(java.lang.String fieldName,
java.lang.String contentType,
boolean isFormField,
java.lang.String fileName)
Deprecated.
1.1 Use
DiskFileItemFactory instead. |
getFileCleaningTracker, getRepository, getSizeThreshold, setFileCleaningTracker, setRepository, setSizeThreshold
@Deprecated public DefaultFileItemFactory()
DiskFileItemFactory
instead.@Deprecated public DefaultFileItemFactory(int sizeThreshold, java.io.File repository)
DiskFileItemFactory
instead.sizeThreshold
- The threshold, in bytes, below which items will be
retained in memory and above which they will be
stored as a file.repository
- The data repository, which is the directory in
which files will be created, should the item size
exceed the threshold.@Deprecated public FileItem createItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName)
DiskFileItemFactory
instead.DefaultFileItem
instance from the supplied parameters and the local factory
configuration.createItem
in interface FileItemFactory
createItem
in class DiskFileItemFactory
fieldName
- The name of the form field.contentType
- The content type of the form field.isFormField
- true
if this is a plain form field;
false
otherwise.fileName
- The name of the uploaded file, if any, as supplied
by the browser or other client.Copyright © 2010 - 2020 Adobe. All Rights Reserved