Class HttpRequest.AttachFile

  • Enclosing class:
    HttpRequest

    public static class HttpRequest.AttachFile
    extends java.lang.Object
    This class represents a file attached into the request.
    • Constructor Summary

      Constructors 
      Constructor Description
      AttachFile​(java.lang.String name, java.lang.String fileName, MimeType mimeType, byte[] file)  
    • Method Summary

      Modifier and Type Method Description
      byte[] getFile()
      Returns the content of the file.
      java.lang.String getFileName()
      Returns the name of the file.
      MimeType getMimeType()  
      java.lang.String getName()
      Returns the name of the block of data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttachFile

        public AttachFile​(java.lang.String name,
                          java.lang.String fileName,
                          MimeType mimeType,
                          byte[] file)
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the block of data.
        Returns:
        Name of the block of data.
      • getFileName

        public java.lang.String getFileName()
        Returns the name of the file.
        Returns:
        File name.
      • getMimeType

        public MimeType getMimeType()
      • getFile

        public byte[] getFile()
        Returns the content of the file.
        Returns:
        File content.