Top Description Fields Constructors Methods
org.apache.hc.client5.http.impl.async

pack-priv Class HttpAsyncMainClientExec

extends Object
implements AsyncExecChainHandler
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.async.AsyncExecChainHandler
Annotations
@Contract
threading:STATELESS
@Internal
Imports
java.io.IOException, .InterruptedIOException, java.nio.ByteBuffer, java.util.List, java.util.concurrent.atomic.AtomicInteger, .AtomicReference, org.apache.hc.client5.http.ConnectionKeepAliveStrategy, .HttpRoute, .UserTokenHandler, org.apache.hc.client5.http.async.AsyncExecCallback, .AsyncExecChain, .AsyncExecChainHandler, .AsyncExecRuntime, org.apache.hc.client5.http.protocol.HttpClientContext, org.apache.hc.core5.annotation.Contract, .Internal, .ThreadingBehavior, org.apache.hc.core5.concurrent.CancellableDependency, org.apache.hc.core5.http.EntityDetails, .Header, .HttpException, .HttpRequest, .HttpResponse, .HttpStatus, org.apache.hc.core5.http.message.RequestLine, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler, .AsyncDataConsumer, .AsyncEntityProducer, .CapacityChannel, .DataStreamChannel, .RequestChannel, org.apache.hc.core5.http.protocol.HttpContext, .HttpCoreContext, .HttpProcessor, org.apache.hc.core5.util.Args, .TimeValue, org.slf4j.Logger, .LoggerFactory

Usually the last HTTP/1.1 request execution handler in the asynchronous request execution chain that is responsible for execution of request/response exchanges with the opposite endpoint.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final HttpProcessor
private final ConnectionKeepAliveStrategy
private static final Logger
private final UserTokenHandler

Constructor Summary

AccessConstructor and Description
pack-priv
HttpAsyncMainClientExec(final HttpProcessor httpProcessor, final ConnectionKeepAliveStrategy keepAliveStrategy, final UserTokenHandler userTokenHandler)

Method Summary

Modifier and TypeMethod and Description
public void
execute(final HttpRequest
the actual request.
request
,
final AsyncEntityProducer
the request entity producer or null if the request does not enclose an entity.
entityProducer
,
final AsyncExecChain.Scope
the execution scope .
scope
,
final AsyncExecChain
the next element in the request execution chain.
chain
,
final AsyncExecCallback
the execution callback.
asyncExecCallback
)

Implements org.apache.hc.client5.http.async.AsyncExecChainHandler.execute.

Executes the actual HTTP request.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

httpProcessorback to summary
private final HttpProcessor httpProcessor
keepAliveStrategyback to summary
private final ConnectionKeepAliveStrategy keepAliveStrategy
LOGback to summary
private static final Logger LOG
userTokenHandlerback to summary
private final UserTokenHandler userTokenHandler

Constructor Detail

HttpAsyncMainClientExecback to summary
pack-priv HttpAsyncMainClientExec(final HttpProcessor httpProcessor, final ConnectionKeepAliveStrategy keepAliveStrategy, final UserTokenHandler userTokenHandler)

Method Detail

executeback to summary
public void execute(final HttpRequest request, final AsyncEntityProducer entityProducer, final AsyncExecChain.Scope scope, final AsyncExecChain chain, final AsyncExecCallback asyncExecCallback) throws HttpException, IOException

Implements org.apache.hc.client5.http.async.AsyncExecChainHandler.execute.

Doc from org.apache.hc.client5.http.async.AsyncExecChainHandler.execute.

Executes the actual HTTP request. The handler can choose to return a response message immediately inside the call or asynchronously at some later point or delegate request execution to the next element in the execution chain.

Parameters
request:HttpRequest

the actual request.

entityProducer:AsyncEntityProducer

the request entity producer or null if the request does not enclose an entity.

scope:AsyncExecChain.Scope

the execution scope .

chain:AsyncExecChain

the next element in the request execution chain.

asyncExecCallback:AsyncExecCallback

the execution callback.

Annotations
@Override