|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.http.client.CommonsClientHttpResponse
HttpComponentsClientHttpResponse
@Deprecated final class CommonsClientHttpResponse
ClientHttpResponse
implementation that uses
Apache Commons HttpClient to execute requests.
Created via the CommonsClientHttpRequest
.
AbstractClientHttpRequest.execute()
Field Summary | |
---|---|
private HttpHeaders |
headers
Deprecated. |
private HttpMethod |
httpMethod
Deprecated. |
Constructor Summary | |
---|---|
CommonsClientHttpResponse(HttpMethod httpMethod)
Deprecated. |
Method Summary | |
---|---|
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. |
HttpStatus |
getStatusCode()
Deprecated. Return the HTTP status code of the response. |
java.lang.String |
getStatusText()
Deprecated. Return the HTTP status text of the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final HttpMethod httpMethod
private HttpHeaders headers
Constructor Detail |
---|
CommonsClientHttpResponse(HttpMethod httpMethod)
Method Detail |
---|
public HttpStatus getStatusCode()
ClientHttpResponse
getStatusCode
in interface ClientHttpResponse
public java.lang.String getStatusText()
ClientHttpResponse
getStatusText
in interface ClientHttpResponse
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
public java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
getBody
in interface HttpInputMessage
java.io.IOException
- in case of I/O Errorspublic void close()
ClientHttpResponse
close
in interface ClientHttpResponse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |