|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.http.client.CommonsClientHttpRequestFactory
HttpComponentsClientHttpRequestFactory.
Apache Commons HttpClient 3.x is not available on Android.
@Deprecated public class CommonsClientHttpRequestFactory
ClientHttpRequestFactory implementation that uses
Jakarta Commons HttpClient to create requests.
Allows to use a pre-configured HttpClient instance -
potentially with authentication, HTTP connection pooling, etc.
SimpleClientHttpRequestFactory| Constructor Summary | |
|---|---|
CommonsClientHttpRequestFactory()
Deprecated. Create a new instance of the CommonsHttpRequestFactory with a default
HttpClient that uses a default MultiThreadedHttpConnectionManager. |
|
CommonsClientHttpRequestFactory(org.apache.commons.httpclient.HttpClient httpClient)
Deprecated. Create a new instance of the CommonsHttpRequestFactory with the given
HttpClient instance. |
|
| Method Summary | |
|---|---|
protected org.apache.commons.httpclient.HttpMethodBase |
createCommonsHttpMethod(HttpMethod httpMethod,
java.lang.String uri)
Deprecated. Create a Commons HttpMethodBase object for the given HTTP method and URI specification. |
ClientHttpRequest |
createRequest(java.net.URI uri,
HttpMethod httpMethod)
Deprecated. |
void |
destroy()
Deprecated. Shutdown hook that closes the underlying HttpConnectionManager's
connection pool, if any. |
org.apache.commons.httpclient.HttpClient |
getHttpClient()
Deprecated. Return the HttpClient used by this factory. |
protected void |
postProcessCommonsHttpMethod(org.apache.commons.httpclient.HttpMethodBase httpMethod)
Deprecated. Template method that allows for manipulating the HttpMethodBase
before it is returned as part of a CommonsClientHttpRequest. |
void |
setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
Deprecated. Set the HttpClient used by this factory. |
void |
setReadTimeout(int timeout)
Deprecated. Set the socket read timeout for the underlying HttpClient. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommonsClientHttpRequestFactory()
CommonsHttpRequestFactory with a default
HttpClient that uses a default MultiThreadedHttpConnectionManager.
public CommonsClientHttpRequestFactory(org.apache.commons.httpclient.HttpClient httpClient)
CommonsHttpRequestFactory with the given
HttpClient instance.
httpClient - the HttpClient instance to use for this factory| Method Detail |
|---|
public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
HttpClient used by this factory.
public org.apache.commons.httpclient.HttpClient getHttpClient()
HttpClient used by this factory.
public void setReadTimeout(int timeout)
timeout - the timeout value in millisecondsHttpConnectionParams.setSoTimeout(int)
public ClientHttpRequest createRequest(java.net.URI uri,
HttpMethod httpMethod)
throws java.io.IOException
createRequest in interface ClientHttpRequestFactoryjava.io.IOException
protected org.apache.commons.httpclient.HttpMethodBase createCommonsHttpMethod(HttpMethod httpMethod,
java.lang.String uri)
httpMethod - the HTTP methoduri - the URI
protected void postProcessCommonsHttpMethod(org.apache.commons.httpclient.HttpMethodBase httpMethod)
HttpMethodBase
before it is returned as part of a CommonsClientHttpRequest.
The default implementation is empty.
httpMethod - the Commons HTTP method object to processpublic void destroy()
HttpConnectionManager's
connection pool, if any.
destroy in interface DisposableBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||