public class HttpResponse
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpResponse.Builder
A builder class for
HttpResponse to create an immutable instance. |
Modifier and Type | Method and Description |
---|---|
static HttpResponse.Builder |
builder()
Creates a builder for
HttpResponse . |
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()
public static HttpResponse.Builder builder()
HttpResponse
.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.