Top Description Methods
org.apache.hc.client5.http.io

public Interface HttpClientConnectionOperator

Known Direct Implementers
org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator
Annotations
@Contract
threading:STATELESS
@Internal
Imports
java.io.IOException, java.net.InetSocketAddress, org.apache.hc.core5.annotation.Contract, .Internal, .ThreadingBehavior, org.apache.hc.core5.http.HttpHost, org.apache.hc.core5.http.io.SocketConfig, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.TimeValue, .Timeout

Connection operator that performs connection connect and upgrade operations.
Since
4.4

Method Summary

Modifier and TypeMethod and Description
public void
connect(ManagedHttpClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint.
host
,
InetSocketAddress
the address of the local endpoint.
localAddress
,
TimeValue
the timeout of the connect operation.
connectTimeout
,
SocketConfig
the socket configuration.
socketConfig
,
HttpContext
the execution context.
context
)

Connect the given managed connection to the remote endpoint.

public default void
connect(ManagedHttpClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint.
host
,
InetSocketAddress
the address of the local endpoint.
localAddress
,
Timeout
the timeout of the connect operation.
connectTimeout
,
SocketConfig
the socket configuration.
socketConfig
,
Object
connect request attachment.
attachment
,
HttpContext
the execution context.
context
)

Connect the given managed connection to the remote endpoint.

public void
upgrade(ManagedHttpClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint with TLS security.
host
,
HttpContext
the execution context.
context
)

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

public default void
upgrade(ManagedHttpClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint with TLS security.
host
,
Object
connect request attachment.
attachment
,
HttpContext
the execution context.
context
)

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

Method Detail

connectback to summary
public void connect(ManagedHttpClientConnection conn, HttpHost host, InetSocketAddress localAddress, TimeValue connectTimeout, SocketConfig socketConfig, HttpContext context) throws IOException

Connect the given managed connection to the remote endpoint.

Parameters
conn:ManagedHttpClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint.

localAddress:InetSocketAddress

the address of the local endpoint.

connectTimeout:TimeValue

the timeout of the connect operation.

socketConfig:SocketConfig

the socket configuration.

context:HttpContext

the execution context.

connectback to summary
public default void connect(ManagedHttpClientConnection conn, HttpHost host, InetSocketAddress localAddress, Timeout connectTimeout, SocketConfig socketConfig, Object attachment, HttpContext context) throws IOException

Connect the given managed connection to the remote endpoint.

Parameters
conn:ManagedHttpClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint.

localAddress:InetSocketAddress

the address of the local endpoint.

connectTimeout:Timeout

the timeout of the connect operation.

socketConfig:SocketConfig

the socket configuration.

attachment:Object

connect request attachment.

context:HttpContext

the execution context.

Since
5.2
upgradeback to summary
public void upgrade(ManagedHttpClientConnection conn, HttpHost host, HttpContext context) throws IOException

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

Parameters
conn:ManagedHttpClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

context:HttpContext

the execution context.

upgradeback to summary
public default void upgrade(ManagedHttpClientConnection conn, HttpHost host, Object attachment, HttpContext context) throws IOException

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

Parameters
conn:ManagedHttpClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

connect request attachment.

context:HttpContext

the execution context.

Since
5.2