| 软件包 | 描述 |
|---|---|
| org.apache.http.impl.client |
默认HTTP客户端实现。
|
| org.apache.http.impl.conn |
客户端连接管理功能的默认实现。
|
| org.apache.http.impl.execchain |
HTTP请求执行链API。
|
| Modifier and Type | Method and Description |
|---|---|
protected ClientExecChain |
HttpClientBuilder.createMainExec(HttpRequestExecutor requestExec, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy, HttpProcessor proxyHttpProcessor, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler)
生成一个 ClientExecChain的实例,用作主要的exec。
|
static CloseableHttpClient |
HttpClients.createMinimal(HttpClientConnectionManager connManager)
创建 CloseableHttpClient实现最基本的HTTP协议支持的实例。
|
HttpClientBuilder |
HttpClientBuilder.setConnectionManager(HttpClientConnectionManager connManager)
|
| Constructor and Description |
|---|
IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long maxIdleTime, TimeUnit maxIdleTimeUnit) |
IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long sleepTime, TimeUnit sleepTimeUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) |
IdleConnectionEvictor(HttpClientConnectionManager connectionManager, ThreadFactory threadFactory, long sleepTime, TimeUnit sleepTimeUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicHttpClientConnectionManager
单个连接的连接管理器。
|
class |
PoolingHttpClientConnectionManager
ClientConnectionPoolManager保持池HttpClientConnection个 S和能够服务从多个执行线程的连接请求。
|
| Constructor and Description |
|---|
MainClientExec(HttpRequestExecutor requestExecutor, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler) |
MainClientExec(HttpRequestExecutor requestExecutor, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy, HttpProcessor proxyHttpProcessor, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler) |
MinimalClientExec(HttpRequestExecutor requestExecutor, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy) |
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.