public interface IFileItemFactory extends Serializable
A factory interface for creating IFileItem instances. Factories can
provide their own custom configuration, over and above that provided by the
default file upload implementation.
| Modifier and Type | Method and Description |
|---|---|
IFileItem |
createItem(String sFieldName,
String sContentType,
boolean bIsFormField,
String sFileName)
Create a new
IFileItem instance from the supplied parameters and
any local factory configuration. |
com.helger.commons.collection.impl.ICommonsList<File> |
getAllTemporaryFiles() |
void |
setRepository(File aRepository)
Define where to store files
|
void setRepository(@Nullable File aRepository)
aRepository - The directory to use. May be null.@Nonnull IFileItem createItem(@Nullable String sFieldName, @Nullable String sContentType, boolean bIsFormField, @Nullable String sFileName)
IFileItem instance from the supplied parameters and
any local factory configuration.sFieldName - The name of the form field.sContentType - The content type of the form field.bIsFormField - true if this is a plain form field; false
otherwise.sFileName - The name of the uploaded file, if any, as supplied by the browser or
other client.Copyright © 2014–2019 Philip Helger. All rights reserved.