HttpComponentsClientHttpResponse
@Deprecated final class CommonsClientHttpResponse extends AbstractClientHttpResponse
ClientHttpResponse
implementation that uses
Apache Commons HttpClient to execute requests.
Created via the CommonsClientHttpRequest
.
AbstractClientHttpRequest.execute()
Modifier and Type | Field and Description |
---|---|
private HttpHeaders |
headers
Deprecated.
|
private HttpMethod |
httpMethod
Deprecated.
|
Constructor and Description |
---|
CommonsClientHttpResponse(HttpMethod httpMethod)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Closes this response, freeing any resources created.
|
java.io.InputStream |
getBody()
Deprecated.
Return the body of the message as an input stream.
|
HttpHeaders |
getHeaders()
Deprecated.
Return the headers of this message.
|
int |
getRawStatusCode()
Deprecated.
Return the HTTP status code of the response as integer
|
java.lang.String |
getStatusText()
Deprecated.
Return the HTTP status text of the response.
|
getStatusCode
private final HttpMethod httpMethod
private HttpHeaders headers
CommonsClientHttpResponse(HttpMethod httpMethod)
public int getRawStatusCode()
ClientHttpResponse
public java.lang.String getStatusText()
ClientHttpResponse
public HttpHeaders getHeaders()
HttpMessage
public java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
java.io.IOException
- in case of I/O Errorspublic void close()
ClientHttpResponse