@Contract(threading=STATELESS) @Internal public interface HttpClientConnectionOperator
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
Timeout connectTimeout,
SocketConfig socketConfig,
Object attachment,
HttpContext context)
Connect the given managed connection to the remote endpoint.
|
void |
connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
TimeValue connectTimeout,
SocketConfig socketConfig,
HttpContext context)
Connect the given managed connection to the remote endpoint.
|
void |
upgrade(ManagedHttpClientConnection conn,
HttpHost host,
HttpContext context)
Upgrades transport security of the given managed connection
by using the TLS security protocol.
|
default void |
upgrade(ManagedHttpClientConnection conn,
HttpHost host,
Object attachment,
HttpContext context)
Upgrades transport security of the given managed connection
by using the TLS security protocol.
|
void connect(ManagedHttpClientConnection conn, HttpHost host, InetSocketAddress localAddress, TimeValue connectTimeout, SocketConfig socketConfig, HttpContext context) throws IOException
conn - the managed connection.host - the address of the opposite endpoint.localAddress - the address of the local endpoint.connectTimeout - the timeout of the connect operation.socketConfig - the socket configuration.context - the execution context.IOExceptiondefault void connect(ManagedHttpClientConnection conn, HttpHost host, InetSocketAddress localAddress, Timeout connectTimeout, SocketConfig socketConfig, Object attachment, HttpContext context) throws IOException
conn - the managed connection.host - the address of the opposite endpoint.localAddress - the address of the local endpoint.connectTimeout - the timeout of the connect operation.socketConfig - the socket configuration.attachment - connect request attachment.context - the execution context.IOExceptionvoid upgrade(ManagedHttpClientConnection conn, HttpHost host, HttpContext context) throws IOException
conn - the managed connection.host - the address of the opposite endpoint with TLS security.context - the execution context.IOExceptiondefault void upgrade(ManagedHttpClientConnection conn, HttpHost host, Object attachment, HttpContext context) throws IOException
conn - the managed connection.host - the address of the opposite endpoint with TLS security.attachment - connect request attachment.context - the execution context.IOExceptionCopyright © 2023. All rights reserved.