public class MessageContentResponse
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
MessageContentResponse.MessageContentResponseBuilder |
Modifier and Type | Method and Description |
---|---|
static MessageContentResponse.MessageContentResponseBuilder |
builder() |
void |
close() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllHeaders()
All HTTP headers of API response.
|
long |
getLength()
File size of this content.
|
java.lang.String |
getMimeType()
File contents type represented by MIME.
|
java.io.InputStream |
getStream()
File input stream of this content.
|
java.lang.String |
toString() |
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException
public static MessageContentResponse.MessageContentResponseBuilder builder()
public long getLength()
public java.io.InputStream getStream()
public java.lang.String getMimeType()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllHeaders()
Note: there are no SPEC for those headers. Current field values are provided AS-IS and can be changed/removed without announces.
public java.lang.String toString()
toString
in class java.lang.Object