Class MessageContentResponse

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class MessageContentResponse
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • getLength

        public long getLength()
        File size of this content.
      • getStream

        public java.io.InputStream getStream()
        File input stream of this content.
      • getMimeType

        public java.lang.String getMimeType()
        File contents type represented by MIME.
      • getAllHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllHeaders()
        All HTTP headers of API response.

        Note: there are no SPEC for those headers. Current field values are provided AS-IS and can be changed/removed without announces.

      • toString

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