Class UploadedFile
- java.lang.Object
-
- org.hippoecm.frontend.plugins.yui.upload.model.UploadedFile
-
public class UploadedFile extends Object
This class represents the file that is being uploaded. It contains the file and some extra information. This object is initialized with the data from the original object being uploaded and can be transformed during the execution ofIUploadPreProcessor.process(UploadedFile)
, so the data can be transformed before being persisted.
-
-
Constructor Summary
Constructors Constructor Description UploadedFile(File file, org.apache.commons.fileupload.FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
String
getFieldName()
File
getFile()
String
getFileName()
boolean
isFormField()
void
setContentType(String contentType)
void
setFileName(String fileName)
-
-
-
Constructor Detail
-
UploadedFile
public UploadedFile(File file, org.apache.commons.fileupload.FileItem fileItem)
-
-
Method Detail
-
getFile
public File getFile()
-
getFieldName
public String getFieldName()
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
isFormField
public boolean isFormField()
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
-