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

public final Class MainClientExec

extends Object
implements ExecChainHandler
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.classic.ExecChainHandler
Annotations
@Contract
threading:STATELESS
@Internal
Imports
java.io.IOException, .InterruptedIOException, org.apache.hc.client5.http.ConnectionKeepAliveStrategy, .HttpRoute, .UserTokenHandler, org.apache.hc.client5.http.classic.ExecChain, .ExecChainHandler, .ExecRuntime, org.apache.hc.client5.http.impl.ConnectionShutdownException, org.apache.hc.client5.http.io.HttpClientConnectionManager, org.apache.hc.client5.http.protocol.HttpClientContext, org.apache.hc.core5.annotation.Contract, .Internal, .ThreadingBehavior, org.apache.hc.core5.http.ClassicHttpRequest, .ClassicHttpResponse, .ConnectionReuseStrategy, .HttpEntity, .HttpException, org.apache.hc.core5.http.message.RequestLine, org.apache.hc.core5.http.protocol.HttpCoreContext, .HttpProcessor, org.apache.hc.core5.io.CloseMode, org.apache.hc.core5.util.Args, .TimeValue, org.slf4j.Logger, .LoggerFactory

Usually the last request execution handler in the classic request execution chain that is responsible for execution of request / response exchanges with the opposite endpoint.
Since
4.3

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
MainClientExec(final HttpClientConnectionManager connectionManager, final HttpProcessor httpProcessor, final ConnectionReuseStrategy reuseStrategy, final ConnectionKeepAliveStrategy keepAliveStrategy, final UserTokenHandler userTokenHandler)

Method Summary

Modifier and TypeMethod and Description
public ClassicHttpResponse
execute(final ClassicHttpRequest
the actual request.
request
,
final ExecChain.Scope
the execution scope .
scope
,
final ExecChain
the next element in the request execution chain.
chain
)

Implements org.apache.hc.client5.http.classic.ExecChainHandler.execute.

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

Field Detail

connectionManagerback to summary
private final HttpClientConnectionManager connectionManager
httpProcessorback to summary
private final HttpProcessor httpProcessor
keepAliveStrategyback to summary
private final ConnectionKeepAliveStrategy keepAliveStrategy
LOGback to summary
private static final Logger LOG
reuseStrategyback to summary
private final ConnectionReuseStrategy reuseStrategy
userTokenHandlerback to summary
private final UserTokenHandler userTokenHandler

Constructor Detail

MainClientExecback to summary
public MainClientExec(final HttpClientConnectionManager connectionManager, final HttpProcessor httpProcessor, final ConnectionReuseStrategy reuseStrategy, final ConnectionKeepAliveStrategy keepAliveStrategy, final UserTokenHandler userTokenHandler)
Since
4.4

Method Detail

executeback to summary
public ClassicHttpResponse execute(final ClassicHttpRequest request, final ExecChain.Scope scope, final ExecChain chain) throws IOException, HttpException

Implements org.apache.hc.client5.http.classic.ExecChainHandler.execute.

Doc from org.apache.hc.client5.http.classic.ExecChainHandler.execute.

Executes the actual HTTP request. The handler can choose to return a response message or delegate request execution to the next element in the execution chain.

Parameters
request:ClassicHttpRequest

the actual request.

scope:ExecChain.Scope

the execution scope .

chain:ExecChain

the next element in the request execution chain.

Annotations
@Override