Package com.linecorp.bot.client
Class MessageContentResponse
- java.lang.Object
-
- com.linecorp.bot.client.MessageContentResponse
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class MessageContentResponse extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageContentResponse.MessageContentResponseBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
builder
public static MessageContentResponse.MessageContentResponseBuilder builder()
-
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 classjava.lang.Object
-
-