Interface HttpAsyncRequestExecutionHandler<T>
- Type Parameters:
T- the result type of request execution.
- All Superinterfaces:
AutoCloseable, org.apache.http.concurrent.Cancellable, Closeable, HttpAsyncRequestProducer, HttpAsyncResponseConsumer<T>
- All Known Implementing Classes:
BasicAsyncRequestExecutionHandler
@Deprecated
public interface HttpAsyncRequestExecutionHandler<T>
extends HttpAsyncRequestProducer, HttpAsyncResponseConsumer<T>
Deprecated.
HttpAsyncRequestExecutionHandler represents a callback interface
that combines functionality of HttpAsyncRequestProducer and
HttpAsyncResponseConsumer and is capable of handling logically
related series of HTTP request / response exchanges.- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.ConnectionReuseStrategyDeprecated.ReturnsConnectionReuseStrategyimplementation to be used to determine whether or not the underlying connection can be kept alive after a particular HTTP request / response exchange.org.apache.http.protocol.HttpContextDeprecated.Returns sharedHttpContextinstance.org.apache.http.protocol.HttpProcessorDeprecated.ReturnsHttpProcessorimplementation to be used to process HTTP request and response messages for protocol compliance.Methods inherited from interface org.apache.http.concurrent.Cancellable
cancelMethods inherited from interface HttpAsyncRequestProducer
failed, generateRequest, getTarget, isRepeatable, produceContent, requestCompleted, resetRequestMethods inherited from interface HttpAsyncResponseConsumer
consumeContent, failed, getException, getResult, isDone, responseCompleted, responseReceived
-
Method Details
-
getContext
org.apache.http.protocol.HttpContext getContext()Deprecated.Returns sharedHttpContextinstance.- Returns:
- HTTP context
-
getHttpProcessor
org.apache.http.protocol.HttpProcessor getHttpProcessor()Deprecated.ReturnsHttpProcessorimplementation to be used to process HTTP request and response messages for protocol compliance.- Returns:
- HTTP protocol processor.
-
getConnectionReuseStrategy
org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()Deprecated.ReturnsConnectionReuseStrategyimplementation to be used to determine whether or not the underlying connection can be kept alive after a particular HTTP request / response exchange.- Returns:
- connection re-use strategy.
-
HttpAsyncClientExchangeHandler