Top Description Methods
org.apache.tomcat.util.http.fileupload

public Interface FileItemFactory

Known Direct Implementers
org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory

A factory interface for creating FileItem instances. Factories can provide their own custom configuration, over and above that provided by the default file upload implementation.

Method Summary

Modifier and TypeMethod and Description
public FileItem

Returns:

The newly created file item.
createItem
(String
The name of the form field.
fieldName
,
String
The content type of the form field.
contentType
,
boolean
true if this is a plain form field; false otherwise.
isFormField
,
String
The name of the uploaded file, if any, as supplied by the browser or other client.
fileName
)

Create a new FileItem instance from the supplied parameters and any local factory configuration.

Method Detail

createItemback to summary
public FileItem createItem(String fieldName, String contentType, boolean isFormField, String fileName)

Create a new FileItem instance from the supplied parameters and any local factory configuration.

Parameters
fieldName:String

The name of the form field.

contentType:String

The content type of the form field.

isFormField:boolean

true if this is a plain form field; false otherwise.

fileName:String

The name of the uploaded file, if any, as supplied by the browser or other client.

Returns:FileItem

The newly created file item.