Interface FileItemFactory
- 
- All Known Implementing Classes:
- DiskFileItemFactory
 
 public interface FileItemFactoryA factory interface for creating FileIteminstances. Factories can provide their own custom configuration, over and above that provided by the default file upload implementation.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description FileItemcreateItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName)Create a newFileIteminstance from the supplied parameters and any local factory configuration.
 
- 
- 
- 
Method Detail- 
createItemFileItem createItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName) Create a newFileIteminstance from the supplied parameters and any local factory configuration.- Parameters:
- fieldName- The name of the form field.
- contentType- The content type of the form field.
- isFormField-- trueif this is a plain form field;- falseotherwise.
- fileName- The name of the uploaded file, if any, as supplied by the browser or other client.
- Returns:
- The newly created file item.
 
 
- 
 
-