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.DiskFileItemFactory
A factory used to create ProgressMonitorFileItem wrapping a DiskFileItem
with progess information stored in HttpSession
- Since:
- jcms-5.7.0
- Author:
- Jean-Philippe Encausse
-
Field Summary
Fields inherited from class org.apache.commons.fileupload.disk.DiskFileItemFactory
DEFAULT_SIZE_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionBuilds a new ProgressMonitorFileItemFactory and extract content-length. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.fileupload.FileItemcreateItem(String fieldName, String contentType, boolean isFormField, String fileName) Create the convenient FileItemMethods inherited from class org.apache.commons.fileupload.disk.DiskFileItemFactory
getDefaultCharset, getFileCleaningTracker, getRepository, getSizeThreshold, setDefaultCharset, setFileCleaningTracker, setRepository, setSizeThreshold
-
Constructor Details
-
ProgressMonitorFileItemFactory
Builds a new ProgressMonitorFileItemFactory and extract content-length.- Parameters:
status- the progress status
-
-
Method Details
-
createItem
public org.apache.commons.fileupload.FileItem createItem(String fieldName, String contentType, boolean isFormField, 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:
-