Class FilePart

    • Field Detail

      • DEFAULT_CONTENT_TYPE

        public static final String DEFAULT_CONTENT_TYPE
        Deprecated.
        Default content encoding of file attachments.
        See Also:
        Constant Field Values
      • DEFAULT_CHARSET

        public static final String DEFAULT_CHARSET
        Deprecated.
        Default charset of file attachments.
        See Also:
        Constant Field Values
      • DEFAULT_TRANSFER_ENCODING

        public static final String DEFAULT_TRANSFER_ENCODING
        Deprecated.
        Default transfer encoding of file attachments.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FilePart

        public FilePart​(String name,
                        PartSource partSource,
                        String contentType,
                        String charset)
        Deprecated.
        FilePart Constructor.
        Parameters:
        name - the name for this part
        partSource - the source for this part
        contentType - the content type for this part, if null the default is used
        charset - the charset encoding for this part, if null the default is used
      • FilePart

        public FilePart​(String name,
                        PartSource partSource)
        Deprecated.
        FilePart Constructor.
        Parameters:
        name - the name for this part
        partSource - the source for this part
      • FilePart

        public FilePart​(String name,
                        File file)
                 throws FileNotFoundException
        Deprecated.
        FilePart Constructor.
        Parameters:
        name - the name of the file part
        file - the file to post
        Throws:
        FileNotFoundException - if the file is not a normal file or if it is not readable.
      • FilePart

        public FilePart​(String name,
                        File file,
                        String contentType,
                        String charset)
                 throws FileNotFoundException
        Deprecated.
        FilePart Constructor.
        Parameters:
        name - the name of the file part
        file - the file to post
        contentType - the content type for this part, if null the default is used
        charset - the charset encoding for this part, if null the default is used
        Throws:
        FileNotFoundException - if the file is not a normal file or if it is not readable.
      • FilePart

        public FilePart​(String name,
                        String fileName,
                        File file)
                 throws FileNotFoundException
        Deprecated.
        FilePart Constructor.
        Parameters:
        name - the name of the file part
        fileName - the file name
        file - the file to post
        Throws:
        FileNotFoundException - if the file is not a normal file or if it is not readable.
      • FilePart

        public FilePart​(String name,
                        String fileName,
                        File file,
                        String contentType,
                        String charset)
                 throws FileNotFoundException
        Deprecated.
        FilePart Constructor.
        Parameters:
        name - the name of the file part
        fileName - the file name
        file - the file to post
        contentType - the content type for this part, if null the default is used
        charset - the charset encoding for this part, if null the default is used
        Throws:
        FileNotFoundException - if the file is not a normal file or if it is not readable.