ClientHttpResponse implementation based on
Apache HttpComponents HttpClient.
Created via the HttpComponentsClientHttpRequest.
HttpComponentsClientHttpRequest#execute()
| Modifier and Type | Field and Description |
|---|---|
| private HttpHeaders | |
| private final ClassicHttpResponse |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. Close this response, freeing any resources created. |
| public InputStream | getBody()
Implements org. Return the body of the message as an input stream. |
| public HttpHeaders | getHeaders()
Implements org. Return the headers of this message. |
| public HttpStatusCode | getStatusCode()
Implements org. Get the HTTP status code as an |
| public String | getStatusText()
Implements org. Get the HTTP status text of the response. |
| headers | back to summary |
|---|---|
| private HttpHeaders headers
| |
| httpResponse | back to summary |
|---|---|
| private final ClassicHttpResponse httpResponse | |
| HttpComponentsClientHttpResponse | back to summary |
|---|---|
| pack-priv HttpComponentsClientHttpResponse(ClassicHttpResponse httpResponse) | |
| 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() Implements org. Doc from org. Get the HTTP status code as an
| |
| getStatusText | back to summary |
|---|---|
| public String getStatusText() Implements org. Doc from org. Get the HTTP status text of the response. | |