| Package | Description |
|---|---|
| org.apache.hc.client5.http | |
| org.apache.hc.client5.http.async | |
| org.apache.hc.client5.http.impl | |
| org.apache.hc.client5.http.impl.io |
Default implementations of client connection management
functions.
|
| org.apache.hc.client5.http.impl.nio | |
| 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.nio | |
| 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 | Field and Description |
|---|---|
HttpRoute |
AsyncExecChain.Scope.route |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncExecRuntime.acquireConnection(HttpRoute route,
Object state,
HttpClientContext clientContext,
org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) |
| Constructor and Description |
|---|
AsyncExecChain.Scope(String exchangeId,
HttpRoute route,
org.apache.hc.core5.http.HttpRequest originalRequest,
HttpClientContext clientContext,
AsyncExecRuntime execRuntime) |
| Modifier and Type | Method and Description |
|---|---|
static String |
ConnPoolSupport.formatStats(Object object,
HttpRoute route,
Object state,
org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPool) |
Object |
NoopUserTokenHandler.getUserToken(HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
Object |
DefaultUserTokenHandler.getUserToken(HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context) |
static org.apache.hc.core5.http.HttpHost |
AuthSupport.resolveAuthTarget(org.apache.hc.core5.http.HttpRequest request,
HttpRoute route) |
| Modifier and Type | Method and Description |
|---|---|
static String |
ConnPoolSupport.formatStats(Object object,
HttpRoute route,
Object state,
org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPool) |
| Modifier and Type | Method and Description |
|---|---|
Set<HttpRoute> |
PoolingHttpClientConnectionManager.getRoutes() |
| Modifier and Type | Method and Description |
|---|---|
int |
PoolingHttpClientConnectionManager.getMaxPerRoute(HttpRoute route) |
org.apache.hc.core5.pool.PoolStats |
PoolingHttpClientConnectionManager.getStats(HttpRoute route) |
LeaseRequest |
PoolingHttpClientConnectionManager.lease(HttpRoute route,
Object state) |
LeaseRequest |
BasicHttpClientConnectionManager.lease(HttpRoute route,
Object state) |
void |
PoolingHttpClientConnectionManager.setMaxPerRoute(HttpRoute route,
int max) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PoolingHttpClientConnectionManager.enumAvailable(org.apache.hc.core5.function.Callback<org.apache.hc.core5.pool.PoolEntry<HttpRoute,ManagedHttpClientConnection>> callback) |
protected void |
PoolingHttpClientConnectionManager.enumLeased(org.apache.hc.core5.function.Callback<org.apache.hc.core5.pool.PoolEntry<HttpRoute,ManagedHttpClientConnection>> callback) |
PoolingHttpClientConnectionManagerBuilder |
PoolingHttpClientConnectionManagerBuilder.setConnPoolListener(org.apache.hc.core5.pool.ConnPoolListener<HttpRoute> connPoolListener)
Assigns
ConnPoolListener instance. |
| Constructor and Description |
|---|
PoolingHttpClientConnectionManager(HttpClientConnectionOperator httpClientConnectionOperator,
org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory,
org.apache.hc.core5.pool.ConnPoolPolicy connPoolPolicy,
org.apache.hc.core5.pool.ConnPoolListener<HttpRoute> connPoolListener,
org.apache.hc.core5.util.TimeValue timeToLive) |
PoolingHttpClientConnectionManager(org.apache.hc.core5.http.config.Registry<ConnectionSocketFactory> socketFactoryRegistry,
org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver,
org.apache.hc.core5.pool.ConnPoolPolicy connPoolPolicy,
org.apache.hc.core5.pool.ConnPoolListener<HttpRoute> connPoolListener,
org.apache.hc.core5.util.TimeValue timeToLive) |
| Modifier and Type | Method and Description |
|---|---|
int |
PoolingAsyncClientConnectionManager.getMaxPerRoute(HttpRoute route) |
org.apache.hc.core5.pool.PoolStats |
PoolingAsyncClientConnectionManager.getStats(HttpRoute route) |
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.lease(HttpRoute route,
Object state,
org.apache.hc.core5.util.TimeValue timeout,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
void |
PoolingAsyncClientConnectionManager.setMaxPerRoute(HttpRoute route,
int max) |
| Modifier and Type | Method and Description |
|---|---|
PoolingAsyncClientConnectionManagerBuilder |
PoolingAsyncClientConnectionManagerBuilder.setConnPoolListener(org.apache.hc.core5.pool.ConnPoolListener<HttpRoute> connPoolListener)
Assigns
ConnPoolListener instance. |
| Constructor and Description |
|---|
PoolingAsyncClientConnectionManager(org.apache.hc.core5.http.config.Lookup<org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyLookup,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver,
org.apache.hc.core5.util.TimeValue timeToLive,
org.apache.hc.core5.pool.ConnPoolPolicy policy,
org.apache.hc.core5.pool.ConnPoolListener<HttpRoute> connPoolListener) |
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
DefaultRoutePlanner.determineRoute(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.protocol.HttpContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
AIMDBackoffManager.backOff(HttpRoute route) |
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. |
| Modifier and Type | Method and Description |
|---|---|
LeaseRequest |
HttpClientConnectionManager.lease(HttpRoute route,
Object state)
Returns a
LeaseRequest object which can be used to obtain
a ConnectionEndpoint to cancel the request by calling
Cancellable.cancel(). |
| Modifier and Type | Method and Description |
|---|---|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.lease(HttpRoute route,
Object state,
org.apache.hc.core5.util.TimeValue timeout,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Returns a
Future object which can be used to obtain
an AsyncConnectionEndpoint or to cancel the request by calling
Future.cancel(boolean). |
| 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.protocol.HttpContext context)
Determines the route for the given host.
|
| Modifier and Type | Field and Description |
|---|---|
HttpRoute |
ExecChain.Scope.route |
| Modifier and Type | Method and Description |
|---|---|
void |
ExecRuntime.acquireConnection(HttpRoute route,
Object state,
HttpClientContext context) |
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.
|
| Constructor and Description |
|---|
ExecChain.Scope(HttpRoute route,
org.apache.hc.core5.http.ClassicHttpRequest originalRequest,
ExecRuntime execRuntime,
HttpClientContext clientContext) |
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.