org.springframework.http.client
Class CommonsClientHttpResponse

java.lang.Object
  extended by org.springframework.http.client.CommonsClientHttpResponse
All Implemented Interfaces:
ClientHttpResponse, HttpInputMessage, HttpMessage

Deprecated. In favor of HttpComponentsClientHttpResponse

@Deprecated
final class CommonsClientHttpResponse
extends java.lang.Object
implements ClientHttpResponse

ClientHttpResponse implementation that uses Apache Commons HttpClient to execute requests.

Created via the CommonsClientHttpRequest.

Since:
3.0
Author:
Arjen Poutsma
See Also:
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

httpMethod

private final HttpMethod httpMethod
Deprecated. 

headers

private HttpHeaders headers
Deprecated. 
Constructor Detail

CommonsClientHttpResponse

CommonsClientHttpResponse(HttpMethod httpMethod)
Deprecated. 
Method Detail

getStatusCode

public HttpStatus getStatusCode()
Deprecated. 
Description copied from interface: ClientHttpResponse
Return the HTTP status code of the response.

Specified by:
getStatusCode in interface ClientHttpResponse
Returns:
the HTTP status as an HttpStatus enum value

getStatusText

public java.lang.String getStatusText()
Deprecated. 
Description copied from interface: ClientHttpResponse
Return the HTTP status text of the response.

Specified by:
getStatusText in interface ClientHttpResponse
Returns:
the HTTP status text

getHeaders

public HttpHeaders getHeaders()
Deprecated. 
Description copied from interface: HttpMessage
Return the headers of this message.

Specified by:
getHeaders in interface HttpMessage
Returns:
a corresponding HttpHeaders object

getBody

public java.io.InputStream getBody()
                            throws java.io.IOException
Deprecated. 
Description copied from interface: HttpInputMessage
Return the body of the message as an input stream.

Specified by:
getBody in interface HttpInputMessage
Returns:
the input stream body
Throws:
java.io.IOException - in case of I/O Errors

close

public void close()
Deprecated. 
Description copied from interface: ClientHttpResponse
Closes this response, freeing any resources created.

Specified by:
close in interface ClientHttpResponse