| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.impl.io |
Client connection management functions based the classic
connection management APIs.
|
| org.apache.hc.client5.http.io |
Connection management APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.io |
Core HTTP transport APIs based on the classic (blocking) I/O model.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SocketConfig |
PoolingHttpClientConnectionManager.getDefaultSocketConfig()
|
SocketConfig |
BasicHttpClientConnectionManager.getSocketConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DefaultHttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
Timeout connectTimeout,
SocketConfig socketConfig,
Object attachment,
HttpContext context) |
void |
DefaultHttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
TimeValue connectTimeout,
SocketConfig socketConfig,
HttpContext context) |
PoolingHttpClientConnectionManagerBuilder |
PoolingHttpClientConnectionManagerBuilder.setDefaultSocketConfig(SocketConfig config)
Assigns the same
SocketConfig for all routes. |
void |
PoolingHttpClientConnectionManager.setDefaultSocketConfig(SocketConfig config)
Sets the same
SocketConfig for all routes |
void |
BasicHttpClientConnectionManager.setSocketConfig(SocketConfig socketConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
PoolingHttpClientConnectionManagerBuilder |
PoolingHttpClientConnectionManagerBuilder.setSocketConfigResolver(Resolver<HttpRoute,SocketConfig> socketConfigResolver)
Assigns
Resolver of SocketConfig on a per route basis. |
void |
PoolingHttpClientConnectionManager.setSocketConfigResolver(Resolver<HttpRoute,SocketConfig> socketConfigResolver)
Sets
Resolver of SocketConfig on a per route basis. |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
HttpClientConnectionOperator.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 |
HttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
TimeValue connectTimeout,
SocketConfig socketConfig,
HttpContext context)
Connect the given managed connection to the remote endpoint.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ServerBootstrap |
ServerBootstrap.setSocketConfig(SocketConfig socketConfig)
Sets socket configuration.
|
RequesterBootstrap |
RequesterBootstrap.setSocketConfig(SocketConfig socketConfig)
Sets socket configuration.
|
| 构造器和说明 |
|---|
HttpRequester(HttpRequestExecutor requestExecutor,
HttpProcessor httpProcessor,
ManagedConnPool<HttpHost,HttpClientConnection> connPool,
SocketConfig socketConfig,
HttpConnectionFactory<? extends HttpClientConnection> connectFactory,
SSLSocketFactory sslSocketFactory,
Callback<SSLParameters> sslSetupHandler,
SSLSessionVerifier sslSessionVerifier,
Resolver<HttpHost,InetSocketAddress> addressResolver)
Use
RequesterBootstrap to create instances of this class. |
HttpServer(int port,
HttpService httpService,
InetAddress ifAddress,
SocketConfig socketConfig,
ServerSocketFactory serverSocketFactory,
HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory,
Callback<SSLParameters> sslSetupHandler,
ExceptionListener exceptionListener) |
| 限定符和类型 | 字段和说明 |
|---|---|
static SocketConfig |
SocketConfig.DEFAULT |
| 限定符和类型 | 方法和说明 |
|---|---|
SocketConfig |
SocketConfig.Builder.build() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SocketConfig.Builder |
SocketConfig.copy(SocketConfig config) |
Copyright © 2023. All rights reserved.