org.springframework.http.client
Class CommonsClientHttpRequest

java.lang.Object
  extended by org.springframework.http.client.AbstractClientHttpRequest
      extended by org.springframework.http.client.AbstractBufferingClientHttpRequest
          extended by org.springframework.http.client.CommonsClientHttpRequest
All Implemented Interfaces:
ClientHttpRequest, HttpMessage, HttpOutputMessage, HttpRequest

Deprecated. In favor of HttpComponentsClientHttpRequest

@Deprecated
final class CommonsClientHttpRequest
extends AbstractBufferingClientHttpRequest

ClientHttpRequest implementation that uses Apache Commons HttpClient to execute requests.

Created via the CommonsClientHttpRequestFactory.

Since:
3.0
Author:
Arjen Poutsma
See Also:
CommonsClientHttpRequestFactory.createRequest(java.net.URI, HttpMethod)

Field Summary
private  HttpClient httpClient
          Deprecated.  
private  HttpMethodBase httpMethod
          Deprecated.  
 
Constructor Summary
CommonsClientHttpRequest(HttpClient httpClient, HttpMethodBase httpMethod)
          Deprecated.  
 
Method Summary
 ClientHttpResponse executeInternal(HttpHeaders headers, byte[] output)
          Deprecated. Abstract template method that writes the given headers and content to the HTTP request.
 HttpMethod getMethod()
          Deprecated. Return the HTTP method of the request.
 java.net.URI getURI()
          Deprecated. Return the URI of the request.
 
Methods inherited from class org.springframework.http.client.AbstractBufferingClientHttpRequest
executeInternal, getBodyInternal
 
Methods inherited from class org.springframework.http.client.AbstractClientHttpRequest
execute, getBody, getHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpClient

private final HttpClient httpClient
Deprecated. 

httpMethod

private final HttpMethodBase httpMethod
Deprecated. 
Constructor Detail

CommonsClientHttpRequest

CommonsClientHttpRequest(HttpClient httpClient,
                         HttpMethodBase httpMethod)
Deprecated. 
Method Detail

getMethod

public HttpMethod getMethod()
Deprecated. 
Description copied from interface: HttpRequest
Return the HTTP method of the request.

Returns:
the HTTP method as an HttpMethod enum value

getURI

public java.net.URI getURI()
Deprecated. 
Description copied from interface: HttpRequest
Return the URI of the request.

Returns:
the URI of the request

executeInternal

public ClientHttpResponse executeInternal(HttpHeaders headers,
                                          byte[] output)
                                   throws java.io.IOException
Deprecated. 
Description copied from class: AbstractBufferingClientHttpRequest
Abstract template method that writes the given headers and content to the HTTP request.

Specified by:
executeInternal in class AbstractBufferingClientHttpRequest
Parameters:
headers - the HTTP headers
output - the body content
Returns:
the response object for the executed request
Throws:
java.io.IOException