|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.http.AbstractHttpRequestExecutor
public abstract class AbstractHttpRequestExecutor
Base class for HttpRequestExecutor
implementations.
Field Summary | |
---|---|
protected static java.lang.String |
ENCODING_GZIP
|
protected static java.lang.String |
HTTP_HEADER_ACCEPT_ENCODING
|
protected static java.lang.String |
HTTP_HEADER_ACCEPT_LANGUAGE
|
protected static java.lang.String |
HTTP_HEADER_CONTENT_ENCODING
|
protected static java.lang.String |
HTTP_HEADER_CONTENT_LENGTH
|
protected static java.lang.String |
HTTP_HEADER_CONTENT_TYPE
|
protected org.apache.commons.logging.Log |
logger
|
Constructor Summary | |
---|---|
AbstractHttpRequestExecutor()
|
Method Summary | |
---|---|
protected abstract HttpResponse |
doExecuteRequest(HttpRequest request)
Subclasses must implement this method to execute the request. |
HttpResponse |
executeRequest(HttpRequest request)
Execute a request to send its content to its target URL. |
boolean |
isAcceptGzipEncoding()
Return whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as its value. |
void |
setAcceptGzipEncoding(boolean acceptGzipEncoding)
Set whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String HTTP_HEADER_ACCEPT_LANGUAGE
protected static final java.lang.String HTTP_HEADER_ACCEPT_ENCODING
protected static final java.lang.String HTTP_HEADER_CONTENT_ENCODING
protected static final java.lang.String HTTP_HEADER_CONTENT_TYPE
protected static final java.lang.String HTTP_HEADER_CONTENT_LENGTH
protected static final java.lang.String ENCODING_GZIP
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public AbstractHttpRequestExecutor()
Method Detail |
---|
public void setAcceptGzipEncoding(boolean acceptGzipEncoding)
Default is "true". Turn this flag off if you do not want GZIP response compression even if enabled on the HTTP server.
public boolean isAcceptGzipEncoding()
public final HttpResponse executeRequest(HttpRequest request) throws java.lang.Exception
executeRequest
in interface HttpRequestExecutor
request
- the request to execute
java.io.IOException
- if thrown by I/O operations
java.lang.Exception
- in case of general errorsprotected abstract HttpResponse doExecuteRequest(HttpRequest request) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |