org.apache.click.extras.gae
Class MemoryFileItemFactory
java.lang.Object
org.apache.click.extras.gae.MemoryFileItemFactory
- All Implemented Interfaces:
- FileItemFactory
public class MemoryFileItemFactory
- extends Object
- implements FileItemFactory
Provides a FileItemFactory implementation that creates MemoryFileItem
instances which always keep their content in memory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryFileItemFactory
public MemoryFileItemFactory()
createItem
public FileItem createItem(String fieldName,
String contentType,
boolean isFormField,
String fileName)
- Create a new
MemoryFileItem
instance from the supplied parameters.
- Specified by:
createItem
in interface FileItemFactory
- Parameters:
fieldName
- the name of the form fieldcontentType
- the content type of the form fieldisFormField
- true if this is a plain form field, false otherwisefileName
- the name of the uploaded file, if any, as supplied by the
browser or other client
- Returns:
- the newly created file item