Class DefaultAsyncClientConnectionOperator
java.lang.Object
org.apache.hc.client5.http.impl.nio.DefaultAsyncClientConnectionOperator
- All Implemented Interfaces:
AsyncClientConnectionOperator
final class DefaultAsyncClientConnectionOperator
extends Object
implements AsyncClientConnectionOperator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SchemePortResolverprivate final MultihomeIOSessionRequesterprivate final org.apache.hc.core5.http.config.Lookup<org.apache.hc.core5.http.nio.ssl.TlsStrategy> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAsyncClientConnectionOperator(org.apache.hc.core5.http.config.Lookup<org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyLookup, SchemePortResolver schemePortResolver, DnsResolver dnsResolver) -
Method Summary
Modifier and TypeMethodDescriptionconnect(org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator, org.apache.hc.core5.http.HttpHost host, SocketAddress localAddress, org.apache.hc.core5.util.Timeout connectTimeout, Object attachment, org.apache.hc.core5.concurrent.FutureCallback<ManagedAsyncClientConnection> callback) Initiates operation to create a connection to the remote endpoint using the providedConnectionInitiator.voidupgrade(ManagedAsyncClientConnection connection, org.apache.hc.core5.http.HttpHost host, Object attachment) Upgrades transport security of the given managed connection by using the TLS security protocol.
-
Field Details
-
schemePortResolver
-
sessionRequester
-
tlsStrategyLookup
private final org.apache.hc.core5.http.config.Lookup<org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyLookup
-
-
Constructor Details
-
DefaultAsyncClientConnectionOperator
DefaultAsyncClientConnectionOperator(org.apache.hc.core5.http.config.Lookup<org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyLookup, SchemePortResolver schemePortResolver, DnsResolver dnsResolver)
-
-
Method Details
-
connect
public Future<ManagedAsyncClientConnection> connect(org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator, org.apache.hc.core5.http.HttpHost host, SocketAddress localAddress, org.apache.hc.core5.util.Timeout connectTimeout, Object attachment, org.apache.hc.core5.concurrent.FutureCallback<ManagedAsyncClientConnection> callback) Description copied from interface:AsyncClientConnectionOperatorInitiates operation to create a connection to the remote endpoint using the providedConnectionInitiator.- Specified by:
connectin interfaceAsyncClientConnectionOperator- Parameters:
connectionInitiator- the connection initiator.host- the address of the opposite endpoint.localAddress- the address of the local endpoint.connectTimeout- the timeout of the connect operation.attachment- the attachment, which can be any object representing custom parameter of the operation.callback- the future result callback.
-
upgrade
public void upgrade(ManagedAsyncClientConnection connection, org.apache.hc.core5.http.HttpHost host, Object attachment) Description copied from interface:AsyncClientConnectionOperatorUpgrades transport security of the given managed connection by using the TLS security protocol.- Specified by:
upgradein interfaceAsyncClientConnectionOperator- Parameters:
connection- the managed connection.host- the address of the opposite endpoint with TLS security.attachment- the attachment, which can be any object representing custom parameter of the operation.
-