org.apache.click.extras.gae
Class MemoryFileItemFactory

java.lang.Object
  extended by 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.


Constructor Summary
MemoryFileItemFactory()
           
 
Method Summary
 FileItem createItem(String fieldName, String contentType, boolean isFormField, String fileName)
          Create a new MemoryFileItem instance from the supplied parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryFileItemFactory

public MemoryFileItemFactory()
Method Detail

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 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
Returns:
the newly created file item