public class ApiResponse
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getContent()
Returns the input stream containing the response content.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns the HTTP headers returned with this response.
|
java.io.InputStream |
getRawContent()
Get the raw content without considering Content-Encoding.
|
int |
getStatusCode()
Returns the HTTP status code (ex: 200, 404, etc) associated with this
response.
|
java.lang.String |
getStatusText()
Returns the HTTP status text associated with this response.
|
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.io.InputStream getContent() throws java.io.IOException
java.io.IOException
- if an I/O error has occurredpublic java.io.InputStream getRawContent() throws java.io.IOException
java.io.IOException
- if an I/O error has occurredpublic java.lang.String getStatusText()
public int getStatusCode()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.