Class MemoryFileUpload

    • Field Detail

      • filename

        private java.lang.String filename
      • contentType

        private java.lang.String contentType
      • contentTransferEncoding

        private java.lang.String contentTransferEncoding
    • Constructor Detail

      • MemoryFileUpload

        public MemoryFileUpload​(java.lang.String name,
                                java.lang.String filename,
                                java.lang.String contentType,
                                java.lang.String contentTransferEncoding,
                                java.nio.charset.Charset charset,
                                long size)
    • Method Detail

      • getFilename

        public java.lang.String getFilename()
        Description copied from interface: FileUpload
        Returns the original filename in the client's filesystem, as provided by the browser (or other client software).
        Specified by:
        getFilename in interface FileUpload
        Returns:
        the original filename
      • setFilename

        public void setFilename​(java.lang.String filename)
        Description copied from interface: FileUpload
        Set the original filename
        Specified by:
        setFilename in interface FileUpload
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(FileUpload o)
      • setContentType

        public void setContentType​(java.lang.String contentType)
        Description copied from interface: FileUpload
        Set the Content Type passed by the browser if defined
        Specified by:
        setContentType in interface FileUpload
        Parameters:
        contentType - Content Type to set - must be not null
      • getContentType

        public java.lang.String getContentType()
        Description copied from interface: FileUpload
        Returns the content type passed by the browser or null if not defined.
        Specified by:
        getContentType in interface FileUpload
        Returns:
        the content type passed by the browser or null if not defined.
      • getContentTransferEncoding

        public java.lang.String getContentTransferEncoding()
        Description copied from interface: FileUpload
        Returns the Content-Transfer-Encoding
        Specified by:
        getContentTransferEncoding in interface FileUpload
        Returns:
        the Content-Transfer-Encoding
      • setContentTransferEncoding

        public void setContentTransferEncoding​(java.lang.String contentTransferEncoding)
        Description copied from interface: FileUpload
        Set the Content-Transfer-Encoding type from String as 7bit, 8bit or binary
        Specified by:
        setContentTransferEncoding in interface FileUpload
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object