| Package | Description |
|---|---|
| org.apache.hc.client5.http | |
| org.apache.hc.client5.http.impl.io |
Default implementations of client connection management
functions.
|
| org.apache.hc.client5.http.impl.protocol | |
| org.apache.hc.client5.http.impl.routing | |
| org.apache.hc.client5.http.impl.sync |
Default HTTP client implementation.
|
| org.apache.hc.client5.http.io | |
| org.apache.hc.client5.http.protocol |
Client specific HTTP protocol handlers.
|
| org.apache.hc.client5.http.routing |
Client connection routing APIs.
|
| org.apache.hc.client5.http.sync |
Client HTTP communication APIs.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
RouteTracker.toRoute()
Obtains the tracked route.
|
| Constructor and Description |
|---|
RouteTracker(HttpRoute route)
Creates a new tracker for the given route.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpRoute> |
PoolingHttpClientConnectionManager.getRoutes() |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicHttpClientConnectionManager.connect(org.apache.hc.core5.http.io.HttpClientConnection conn,
HttpRoute route,
int connectTimeout,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.connect(org.apache.hc.core5.http.io.HttpClientConnection managedConn,
HttpRoute route,
int connectTimeout,
org.apache.hc.core5.http.protocol.HttpContext context) |
ManagedHttpClientConnection |
ManagedHttpClientConnectionFactory.create(HttpRoute route,
org.apache.hc.core5.http.config.ConnectionConfig config) |
int |
PoolingHttpClientConnectionManager.getMaxPerRoute(HttpRoute route) |
org.apache.hc.core5.pool.PoolStats |
PoolingHttpClientConnectionManager.getStats(HttpRoute route) |
ConnectionRequest |
BasicHttpClientConnectionManager.requestConnection(HttpRoute route,
Object state) |
ConnectionRequest |
PoolingHttpClientConnectionManager.requestConnection(HttpRoute route,
Object state) |
void |
BasicHttpClientConnectionManager.routeComplete(org.apache.hc.core5.http.io.HttpClientConnection conn,
HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.routeComplete(org.apache.hc.core5.http.io.HttpClientConnection managedConn,
HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.setMaxPerRoute(HttpRoute route,
int max) |
void |
BasicHttpClientConnectionManager.upgrade(org.apache.hc.core5.http.io.HttpClientConnection conn,
HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.upgrade(org.apache.hc.core5.http.io.HttpClientConnection managedConn,
HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
| Modifier and Type | Method and Description |
|---|---|
Object |
DefaultUserTokenHandler.getUserToken(HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
DefaultRoutePlanner.determineRoute(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
AIMDBackoffManager.backOff(HttpRoute route) |
CloseableHttpResponse |
BackoffStrategyExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
CloseableHttpResponse |
RetryExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
CloseableHttpResponse |
ClientExecChain.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext clientContext,
HttpExecutionAware execAware)
Executes th request either by transmitting it to the target server or
by passing it onto the next executor in the request execution chain.
|
CloseableHttpResponse |
RedirectExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
CloseableHttpResponse |
MainClientExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
CloseableHttpResponse |
MinimalClientExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
CloseableHttpResponse |
ProtocolExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
CloseableHttpResponse |
ServiceUnavailableRetryExec.execute(HttpRoute route,
HttpRequestWrapper request,
HttpClientContext context,
HttpExecutionAware execAware) |
Object |
NoopUserTokenHandler.getUserToken(HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
AIMDBackoffManager.probe(HttpRoute route) |
| Constructor and Description |
|---|
AIMDBackoffManager(org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPerRoute)
Creates an
AIMDBackoffManager to manage
per-host connection pool sizes represented by the
given ConnPoolControl. |
ProxyClient(HttpConnectionFactory<HttpRoute,ManagedHttpClientConnection> connFactory,
org.apache.hc.core5.http.config.ConnectionConfig connectionConfig,
RequestConfig requestConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpClientConnectionManager.connect(org.apache.hc.core5.http.io.HttpClientConnection conn,
HttpRoute route,
int connectTimeout,
org.apache.hc.core5.http.protocol.HttpContext context)
Connects the underlying connection socket to the connection target in case
of a direct route or to the first proxy hop in case of a route via a proxy
(or multiple proxies).
|
ConnectionRequest |
HttpClientConnectionManager.requestConnection(HttpRoute route,
Object state)
Returns a new
ConnectionRequest, from which a
HttpClientConnection can be obtained or the request can be
aborted. |
void |
HttpClientConnectionManager.routeComplete(org.apache.hc.core5.http.io.HttpClientConnection conn,
HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context)
Marks the connection as fully established with all its intermediate
hops completed.
|
void |
HttpClientConnectionManager.upgrade(org.apache.hc.core5.http.io.HttpClientConnection conn,
HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context)
Upgrades the underlying connection socket to TLS/SSL (or another layering
protocol) after having executed
CONNECT method to all
intermediate proxy hops |
| Modifier and Type | Method and Description |
|---|---|
Object |
UserTokenHandler.getUserToken(HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context)
The token object returned by this method is expected to uniquely
identify the current user if the context is user specific or to be
null if it is not. |
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
HttpRoutePlanner.determineRoute(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context)
Determines the route for a request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BackoffManager.backOff(HttpRoute route)
Called when we have decided that the result of
using a connection should be interpreted as a
backoff signal.
|
void |
BackoffManager.probe(HttpRoute route)
Called when we have determined that the result of
using a connection has succeeded and that we may
probe for more connections.
|
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.