Class FileWrapper


  • public class FileWrapper
    extends Object
    Class to wrap file and contentType to be sent as part of a HTTP request.
    • Constructor Detail

      • FileWrapper

        public FileWrapper​(File file,
                           String contentType)
        Initialization constructor.
        Parameters:
        file - File object to be wrapped
        contentType - content type of file
      • FileWrapper

        public FileWrapper​(File file)
        Initialization constructor.
        Parameters:
        file - File object to be wrapped
    • Method Detail

      • getFile

        public File getFile()
        Getter for file.
        Returns:
        File instance
      • getContentType

        public String getContentType()
        Getter for content type.
        Returns:
        content type of the file