| 软件包 | 描述 |
|---|---|
| org.apache.http.impl.client |
默认HTTP客户端实现。
|
| 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。
|
protected ClientExecChain |
HttpClientBuilder.decorateMainExec(ClientExecChain mainExec)
供内部使用。
|
protected ClientExecChain |
HttpClientBuilder.decorateProtocolExec(ClientExecChain protocolExec)
供内部使用。
|
| Modifier and Type | Method and Description |
|---|---|
protected ClientExecChain |
HttpClientBuilder.decorateMainExec(ClientExecChain mainExec)
供内部使用。
|
protected ClientExecChain |
HttpClientBuilder.decorateProtocolExec(ClientExecChain protocolExec)
供内部使用。
|
| Modifier and Type | Class and Description |
|---|---|
class |
BackoffStrategyExec |
class |
MainClientExec
HTTP请求执行链中的最后一个请求执行器负责执行与相对端点的请求/响应交换。
|
class |
MinimalClientExec
请求执行者实现HTTP规范的最基本方面和与目标服务器最直接的请求/响应交换。
|
class |
ProtocolExec
请求执行者在请求执行链中负责执行HTTP规范要求。
|
class |
RedirectExec
在请求执行链中请求执行者负责处理请求重定向。
|
class |
RetryExec
在请求执行链中请求执行者负责决定是否由于I / O错误而失败请求应该被重新执行。
|
class |
ServiceUnavailableRetryExec
Request executor in the request execution chain that is responsible for making a decision whether a request that received a non-2xx response from the target server should be re-executed.
|
| Constructor and Description |
|---|
BackoffStrategyExec(ClientExecChain requestExecutor, ConnectionBackoffStrategy connectionBackoffStrategy, BackoffManager backoffManager) |
ProtocolExec(ClientExecChain requestExecutor, HttpProcessor httpProcessor) |
RedirectExec(ClientExecChain requestExecutor, HttpRoutePlanner routePlanner, RedirectStrategy redirectStrategy) |
RetryExec(ClientExecChain requestExecutor, HttpRequestRetryHandler retryHandler) |
ServiceUnavailableRetryExec(ClientExecChain requestExecutor, ServiceUnavailableRetryStrategy retryStrategy) |
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.