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

public Class H2AsyncMainClientExec

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.AtomicReference, org.apache.hc.client5.http.HttpRoute, 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, 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, org.slf4j.Logger, .LoggerFactory

Usually the last HTTP/2 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 static final Logger

Constructor Summary

AccessConstructor and Description
pack-priv
H2AsyncMainClientExec(final HttpProcessor httpProcessor)

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
LOGback to summary
private static final Logger LOG

Constructor Detail

H2AsyncMainClientExecback to summary
pack-priv H2AsyncMainClientExec(final HttpProcessor httpProcessor)

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