ClientHttpResponse that reads the response's body
into memory, thus allowing for multiple invocations of getBody().
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private final ClientHttpResponse |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. |
| public InputStream | getBody()
Implements org. |
| public HttpHeaders | getHeaders()
Implements org. |
| public HttpStatusCode | getStatusCode()
Implements org. HttpStatusCode.
|
| public String | getStatusText()
Implements org. |
| body | back to summary |
|---|---|
| private byte[] body
| |
| response | back to summary |
|---|---|
| private final ClientHttpResponse response | |
| BufferingClientHttpResponseWrapper | back to summary |
|---|---|
| pack-priv BufferingClientHttpResponseWrapper(ClientHttpResponse response) | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close this response, freeing any resources created.
| |
| getBody | back to summary |
|---|---|
| public InputStream getBody() throws IOException Implements org. Doc from org. Return the body of the message as an input stream.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() throws IOException Implements org. Doc from org. Get the HTTP status code as an
| |
| getStatusText | back to summary |
|---|---|
| public String getStatusText() throws IOException Implements org. Doc from org. Get the HTTP status text of the response.
| |