Package com.jalios.jcms.upload
Class ProgressMonitorFileItemFactory
- java.lang.Object
 - 
- org.apache.commons.fileupload.disk.DiskFileItemFactory
 - 
- com.jalios.jcms.upload.ProgressMonitorFileItemFactory
 
 
 
- 
- All Implemented Interfaces:
 org.apache.commons.fileupload.FileItemFactory
public class ProgressMonitorFileItemFactory extends org.apache.commons.fileupload.disk.DiskFileItemFactoryA factory used to create ProgressMonitorFileItem wrapping a DiskFileItem with progess information stored in HttpSession- Since:
 - jcms-5.7.0
 - Version:
 - $Revision: 36667 $
 - Author:
 - Jean-Philippe Encausse
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREVISION 
- 
Constructor Summary
Constructors Constructor Description ProgressMonitorFileItemFactory(ProgressMonitorStatus status)Builds a new ProgressMonitorFileItemFactory and extract content-length. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.fileupload.FileItemcreateItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName)Create the convenient FileItem 
 - 
 
- 
- 
Field Detail
- 
REVISION
public static final java.lang.String REVISION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
ProgressMonitorFileItemFactory
public ProgressMonitorFileItemFactory(ProgressMonitorStatus status)
Builds a new ProgressMonitorFileItemFactory and extract content-length.- Parameters:
 status- the progress status
 
 - 
 
- 
Method Detail
- 
createItem
public org.apache.commons.fileupload.FileItem createItem(java.lang.String fieldName, java.lang.String contentType, boolean isFormField, java.lang.String fileName)Create the convenient FileItem- Specified by:
 createItemin interfaceorg.apache.commons.fileupload.FileItemFactory- Overrides:
 createItemin classorg.apache.commons.fileupload.disk.DiskFileItemFactory- Parameters:
 fieldName- the field namecontentType- the content typeisFormField- true if the field is not an uploadfileName- the file name- Returns:
 - FileItem the ProgressMonitorFileItem
 - See Also:
 DiskFileItemFactory.createItem(java.lang.String, java.lang.String, boolean, java.lang.String)
 
 - 
 
 -