Class HttpRequestFileUpload


  • public class HttpRequestFileUpload
    extends java.lang.Object
    HttpRequestFileUpload - Receive a file upload through an HttpServletRequest
    • Constructor Detail

      • HttpRequestFileUpload

        public HttpRequestFileUpload()
    • Method Detail

      • getOverrideFilename

        public java.lang.String getOverrideFilename()
        Gets override filename.
        Returns:
        the override filename
      • setOverrideFilename

        public void setOverrideFilename​(java.lang.String ofName)
        Sets override filename.
        Parameters:
        ofName - the of name
      • getFilename

        public java.lang.String getFilename()
        Gets filename.
        Returns:
        the filename
      • getFilepath

        public java.lang.String getFilepath()
        Gets filepath.
        Returns:
        the filepath
      • setSavePath

        public void setSavePath​(java.lang.String savePath)
        Sets save path.
        Parameters:
        savePath - the save path
      • getContentType

        public java.lang.String getContentType()
        Gets content type.
        Returns:
        the content type
      • getFieldValue

        public java.lang.String getFieldValue​(java.lang.String fieldName)
        Gets field value.
        Parameters:
        fieldName - the field name
        Returns:
        the field value
      • doUpload

        public boolean doUpload​(HttpServletRequest request,
                                java.lang.String fileType)
                         throws java.io.IOException
        Do upload.
        Parameters:
        request - the request
        Throws:
        java.io.IOException - the io exception