Package org.apache.http.nio.protocol
Interface HttpAsyncRequestExecutionHandler<T>
-
- Type Parameters:
T
- the result type of request execution.
- All Superinterfaces:
java.lang.AutoCloseable
,Cancellable
,java.io.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 ofHttpAsyncRequestProducer
andHttpAsyncResponseConsumer
and is capable of handling logically related series of HTTP request / response exchanges.- Since:
- 4.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ConnectionReuseStrategy
getConnectionReuseStrategy()
Deprecated.ReturnsConnectionReuseStrategy
implementation to be used to determine whether or not the underlying connection can be kept alive after a particular HTTP request / response exchange.HttpContext
getContext()
Deprecated.Returns sharedHttpContext
instance.HttpProcessor
getHttpProcessor()
Deprecated.ReturnsHttpProcessor
implementation to be used to process HTTP request and response messages for protocol compliance.-
Methods inherited from interface org.apache.http.concurrent.Cancellable
cancel
-
Methods inherited from interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
failed, generateRequest, getTarget, isRepeatable, produceContent, requestCompleted, resetRequest
-
Methods inherited from interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer
consumeContent, failed, getException, getResult, isDone, responseCompleted, responseReceived
-
-
-
-
Method Detail
-
getContext
HttpContext getContext()
Deprecated.Returns sharedHttpContext
instance.- Returns:
- HTTP context
-
getHttpProcessor
HttpProcessor getHttpProcessor()
Deprecated.ReturnsHttpProcessor
implementation to be used to process HTTP request and response messages for protocol compliance.- Returns:
- HTTP protocol processor.
-
getConnectionReuseStrategy
ConnectionReuseStrategy getConnectionReuseStrategy()
Deprecated.ReturnsConnectionReuseStrategy
implementation 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.
-
-