|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.http.AbstractHttpRequestExecutor org.springframework.integration.http.CommonsHttpRequestExecutor
public class CommonsHttpRequestExecutor
Implementation of HttpRequestExecutor
that uses a commons-http
HttpClient
to execute HttpRequest
instances.
Field Summary |
---|
Fields inherited from class org.springframework.integration.http.AbstractHttpRequestExecutor |
---|
ENCODING_GZIP, HTTP_HEADER_ACCEPT_ENCODING, HTTP_HEADER_ACCEPT_LANGUAGE, HTTP_HEADER_CONTENT_ENCODING, HTTP_HEADER_CONTENT_LENGTH, HTTP_HEADER_CONTENT_TYPE, logger |
Constructor Summary | |
---|---|
CommonsHttpRequestExecutor()
Create a new CommonsHttpRequestExecutor with a default HttpClient that uses a default MultiThreadedHttpConnectionManager. |
|
CommonsHttpRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient)
Create a new CommonsHttpRequestExecutor with the given HttpClient instance. |
Method Summary | |
---|---|
protected HttpResponse |
doExecuteRequest(HttpRequest request)
Subclasses must implement this method to execute the request. |
org.apache.commons.httpclient.HttpClient |
getHttpClient()
Return the HttpClient instance that this request executor uses. |
void |
setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
Set the HttpClient instance to use for this request executor. |
void |
setReadTimeout(int timeout)
Set the socket read timeout for the underlying HttpClient. |
Methods inherited from class org.springframework.integration.http.AbstractHttpRequestExecutor |
---|
executeRequest, isAcceptGzipEncoding, setAcceptGzipEncoding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonsHttpRequestExecutor()
DEFAULT_READ_TIMEOUT_MILLISECONDS
.
HttpClient
,
MultiThreadedHttpConnectionManager
public CommonsHttpRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient)
httpClient
- the HttpClient instance to use for this request executorMethod Detail |
---|
public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
public org.apache.commons.httpclient.HttpClient getHttpClient()
public void setReadTimeout(int timeout)
timeout
- the timeout value in millisecondsHttpConnectionParams.setSoTimeout(int)
,
DEFAULT_READ_TIMEOUT_MILLISECONDS
protected HttpResponse doExecuteRequest(HttpRequest request) throws java.lang.Exception
AbstractHttpRequestExecutor
doExecuteRequest
in class AbstractHttpRequestExecutor
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |