com.jalios.jcms.upload
Class ProgressMonitorFileItemFactory
java.lang.Object
   org.apache.commons.fileupload.disk.DiskFileItemFactory
org.apache.commons.fileupload.disk.DiskFileItemFactory
       com.jalios.jcms.upload.ProgressMonitorFileItemFactory
com.jalios.jcms.upload.ProgressMonitorFileItemFactory
- All Implemented Interfaces: 
- org.apache.commons.fileupload.FileItemFactory
- public class ProgressMonitorFileItemFactory 
- extends org.apache.commons.fileupload.disk.DiskFileItemFactory
A factory used to create ProgressMonitorFileItem wrapping a DiskFileItem
 with progess information stored in HttpSession
- Since:
- jcms-5.7.0
- Version:
- $Revision: 27753 $
- Author:
- Jean-Philippe Encausse
 
| Fields inherited from class org.apache.commons.fileupload.disk.DiskFileItemFactory | 
| DEFAULT_SIZE_THRESHOLD | 
 
 
| Method Summary | 
|  org.apache.commons.fileupload.FileItem | createItem(String fieldName,
           String contentType,
           boolean isFormField,
           String fileName)Create the convenient FileItem
 | 
 
| Methods inherited from class org.apache.commons.fileupload.disk.DiskFileItemFactory | 
| getFileCleaningTracker, getRepository, getSizeThreshold, setFileCleaningTracker, setRepository, setSizeThreshold | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
ProgressMonitorFileItemFactory
public ProgressMonitorFileItemFactory(ProgressMonitorStatus status)
- Builds a new ProgressMonitorFileItemFactory and extract content-length.
 
- Parameters:
- status- the progress status
 
createItem
public org.apache.commons.fileupload.FileItem createItem(String fieldName,
                                                         String contentType,
                                                         boolean isFormField,
                                                         String fileName)
- Create the convenient FileItem
 
- 
- Specified by:
- createItemin interface- org.apache.commons.fileupload.FileItemFactory
- Overrides:
- createItemin class- org.apache.commons.fileupload.disk.DiskFileItemFactory
 
- 
- Parameters:
- fieldName- the field name
- contentType- the content type
- isFormField- true if the field is not an upload
- fileName- the file name
- Returns:
- FileItem the ProgressMonitorFileItem
- See Also:
- DiskFileItemFactory.createItem(java.lang.String, java.lang.String, boolean, java.lang.String)
 
Copyright © 2001-2010 Jalios SA. All Rights Reserved.