Class 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 of IUploadPreProcessor.process(UploadedFile), so the data can be transformed before being persisted.
    • 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)