Top Fields Constructors Methods
org.apache.hc.client5.http.impl.nio

pack-priv final Class DefaultAsyncClientConnectionOperator

extends Object
implements AsyncClientConnectionOperator
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.nio.AsyncClientConnectionOperator
Imports
java.net.InetAddress, .InetSocketAddress, .SocketAddress, java.util.concurrent.Future, org.apache.hc.client5.http.DnsResolver, .SchemePortResolver, org.apache.hc.client5.http.config.TlsConfig, org.apache.hc.client5.http.impl.DefaultSchemePortResolver, org.apache.hc.client5.http.nio.AsyncClientConnectionOperator, .ManagedAsyncClientConnection, org.apache.hc.client5.http.routing.RoutingSupport, org.apache.hc.core5.concurrent.CallbackContribution, .ComplexFuture, .FutureCallback, .FutureContribution, org.apache.hc.core5.http.HttpHost, .URIScheme, org.apache.hc.core5.http.config.Lookup, org.apache.hc.core5.http.nio.ssl.TlsStrategy, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.reactor.ConnectionInitiator, .IOSession, org.apache.hc.core5.reactor.ssl.TransportSecurityLayer, org.apache.hc.core5.util.Args, .Timeout

Field Summary

Modifier and TypeField and Description
private final SchemePortResolver
private final MultihomeIOSessionRequester
private final Lookup<TlsStrategy>

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultAsyncClientConnectionOperator(final Lookup<TlsStrategy> tlsStrategyLookup, final SchemePortResolver schemePortResolver, final DnsResolver dnsResolver)

Method Summary

Modifier and TypeMethod and Description
public Future<ManagedAsyncClientConnection>
connect(final ConnectionInitiator
the connection initiator.
connectionInitiator
,
final HttpHost
the address of the opposite endpoint.
host
,
final SocketAddress
the address of the local endpoint.
localAddress
,
final Timeout
the timeout of the connect operation.
connectTimeout
,
final Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
final FutureCallback<ManagedAsyncClientConnection>
the future result callback.
callback
)

Implements org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.connect.

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.
public Future<ManagedAsyncClientConnection>
connect(final ConnectionInitiator
the connection initiator.
connectionInitiator
,
final HttpHost
the address of the opposite endpoint.
host
,
final SocketAddress
the address of the local endpoint.
localAddress
,
final Timeout
the timeout of the connect operation.
connectTimeout
,
final Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
final HttpContext
the execution context.
context
,
final FutureCallback<ManagedAsyncClientConnection>
the future result callback.
callback
)

Overrides default org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.connect.

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.
public void
upgrade(final ManagedAsyncClientConnection
the managed connection.
connection
,
final HttpHost
the address of the opposite endpoint with TLS security.
host
,
final Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
)

Implements org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Upgrades transport security of the given managed connection by using the TLS security protocol.
public void
upgrade(final ManagedAsyncClientConnection
the managed connection.
connection
,
final HttpHost
the address of the opposite endpoint with TLS security.
host
,
final Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
final HttpContext
the execution context.
context
)

Overrides default org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Upgrades transport security of the given managed connection by using the TLS security protocol.
public void
upgrade(final ManagedAsyncClientConnection
the managed connection.
connection
,
final HttpHost
the address of the opposite endpoint with TLS security.
host
,
final Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
final HttpContext
the execution context.
context
,
final FutureCallback<ManagedAsyncClientConnection>
the future result callback.
callback
)

Overrides default org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Upgrades transport security of the given managed connection by using the TLS security protocol.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

schemePortResolverback to summary
private final SchemePortResolver schemePortResolver
sessionRequesterback to summary
private final MultihomeIOSessionRequester sessionRequester
tlsStrategyLookupback to summary
private final Lookup<TlsStrategy> tlsStrategyLookup

Constructor Detail

DefaultAsyncClientConnectionOperatorback to summary
pack-priv DefaultAsyncClientConnectionOperator(final Lookup<TlsStrategy> tlsStrategyLookup, final SchemePortResolver schemePortResolver, final DnsResolver dnsResolver)

Method Detail

connectback to summary
public Future<ManagedAsyncClientConnection> connect(final ConnectionInitiator connectionInitiator, final HttpHost host, final SocketAddress localAddress, final Timeout connectTimeout, final Object attachment, final FutureCallback<ManagedAsyncClientConnection> callback)

Implements org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.connect.

Doc from org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.connect.

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.

Parameters
connectionInitiator:ConnectionInitiator

the connection initiator.

host:HttpHost

the address of the opposite endpoint.

localAddress:SocketAddress

the address of the local endpoint.

connectTimeout:Timeout

the timeout of the connect operation.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

callback:FutureCallback<ManagedAsyncClientConnection>

the future result callback.

Annotations
@Override
connectback to summary
public Future<ManagedAsyncClientConnection> connect(final ConnectionInitiator connectionInitiator, final HttpHost host, final SocketAddress localAddress, final Timeout connectTimeout, final Object attachment, final HttpContext context, final FutureCallback<ManagedAsyncClientConnection> callback)

Overrides default org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.connect.

Doc from org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.connect.

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.

Parameters
connectionInitiator:ConnectionInitiator

the connection initiator.

host:HttpHost

the address of the opposite endpoint.

localAddress:SocketAddress

the address of the local endpoint.

connectTimeout:Timeout

the timeout of the connect operation.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

context:HttpContext

the execution context.

callback:FutureCallback<ManagedAsyncClientConnection>

the future result callback.

Annotations
@Override
upgradeback to summary
public void upgrade(final ManagedAsyncClientConnection connection, final HttpHost host, final Object attachment)

Implements org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Doc from org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Upgrades transport security of the given managed connection by using the TLS security protocol.

Parameters
connection:ManagedAsyncClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

Annotations
@Override
upgradeback to summary
public void upgrade(final ManagedAsyncClientConnection connection, final HttpHost host, final Object attachment, final HttpContext context)

Overrides default org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Doc from org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Upgrades transport security of the given managed connection by using the TLS security protocol.

Parameters
connection:ManagedAsyncClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

context:HttpContext

the execution context.

Annotations
@Override
upgradeback to summary
public void upgrade(final ManagedAsyncClientConnection connection, final HttpHost host, final Object attachment, final HttpContext context, final FutureCallback<ManagedAsyncClientConnection> callback)

Overrides default org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Doc from org.apache.hc.client5.http.nio.AsyncClientConnectionOperator.upgrade.

Upgrades transport security of the given managed connection by using the TLS security protocol.

Parameters
connection:ManagedAsyncClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

context:HttpContext

the execution context.

callback:FutureCallback<ManagedAsyncClientConnection>

the future result callback.

Annotations
@Override