Package | Description |
---|---|
org.apache.http.client |
Client HTTP communication APIs.
|
org.apache.http.conn |
Client connection management APIs.
|
org.apache.http.conn.params |
Deprecated.
|
org.apache.http.conn.routing |
Client connection routing APIs.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
org.apache.http.impl.conn |
Default implementations of client connection management
functions.
|
org.apache.http.impl.conn.tsccm |
Deprecated.
|
org.apache.http.impl.execchain |
HTTP request execution chain APIs.
|
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.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
HttpRoutedConnection.getRoute()
Deprecated.
Obtains the current route of this connection.
|
HttpRoute |
ManagedClientConnection.getRoute()
Deprecated.
Obtains the current route of this connection.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpClientConnectionManager.connect(org.apache.http.HttpClientConnection conn,
HttpRoute route,
int connectTimeout,
org.apache.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).
|
void |
ManagedClientConnection.open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
Opens this connection according to the given route.
|
ClientConnectionRequest |
ClientConnectionManager.requestConnection(HttpRoute route,
Object state)
Deprecated.
Returns a new
ClientConnectionRequest , from which a
ManagedClientConnection can be obtained or the request can be
aborted. |
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.http.HttpClientConnection conn,
HttpRoute route,
org.apache.http.protocol.HttpContext context)
Marks the connection as fully established with all its intermediate
hops completed.
|
void |
HttpClientConnectionManager.upgrade(org.apache.http.HttpClientConnection conn,
HttpRoute route,
org.apache.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 | Field and Description |
---|---|
static HttpRoute |
ConnRouteParams.NO_ROUTE
Deprecated.
A special value indicating "no route".
|
Modifier and Type | Method and Description |
---|---|
static HttpRoute |
ConnRouteParams.getForcedRoute(org.apache.http.params.HttpParams params)
Deprecated.
Obtains the
FORCED_ROUTE
parameter value. |
Modifier and Type | Method and Description |
---|---|
int |
ConnPerRoute.getMaxForRoute(HttpRoute route)
Deprecated.
|
int |
ConnPerRouteBean.getMaxForRoute(HttpRoute route)
Deprecated.
|
static void |
ConnRouteParams.setForcedRoute(org.apache.http.params.HttpParams params,
HttpRoute route)
Deprecated.
Sets the
FORCED_ROUTE
parameter value. |
void |
ConnRouteParamBean.setForcedRoute(HttpRoute route)
Deprecated.
|
void |
ConnPerRouteBean.setMaxForRoute(HttpRoute route,
int max)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnPerRouteBean.setMaxForRoutes(Map<HttpRoute,Integer> map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
HttpRoutePlanner.determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Determines the route for a request.
|
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 |
---|---|
protected HttpRoute |
RoutedRequest.route
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected HttpRoute |
DefaultRequestDirector.determineRoute(org.apache.http.HttpHost targetHost,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
Determines the route for a request.
|
HttpRoute |
RoutedRequest.getRoute()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
AIMDBackoffManager.backOff(HttpRoute route) |
protected org.apache.http.HttpRequest |
DefaultRequestDirector.createConnectRequest(HttpRoute route,
org.apache.http.protocol.HttpContext context)
Deprecated.
Creates the CONNECT request for tunnelling.
|
protected boolean |
DefaultRequestDirector.createTunnelToProxy(HttpRoute route,
int hop,
org.apache.http.protocol.HttpContext context)
Deprecated.
Creates a tunnel to an intermediate proxy.
|
protected boolean |
DefaultRequestDirector.createTunnelToTarget(HttpRoute route,
org.apache.http.protocol.HttpContext context)
Deprecated.
Creates a tunnel to the target server.
|
protected void |
DefaultRequestDirector.establishRoute(HttpRoute route,
org.apache.http.protocol.HttpContext context)
Deprecated.
Establishes the target route.
|
void |
AIMDBackoffManager.probe(HttpRoute route) |
protected void |
DefaultRequestDirector.rewriteRequestURI(RequestWrapper request,
HttpRoute route)
Deprecated.
|
Constructor and Description |
---|
RoutedRequest(RequestWrapper req,
HttpRoute route)
Deprecated.
Creates a new routed request.
|
Constructor and Description |
---|
AIMDBackoffManager(org.apache.http.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.http.config.ConnectionConfig connectionConfig,
RequestConfig requestConfig) |
Modifier and Type | Field and Description |
---|---|
protected HttpRoute |
AbstractPoolEntry.route
Deprecated.
The route for which this entry gets allocated.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
DefaultHttpRoutePlanner.determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
HttpRoute |
ProxySelectorRoutePlanner.determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
HttpRoute |
DefaultRoutePlanner.determineRoute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
HttpRoute |
AbstractPooledConnAdapter.getRoute()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Set<HttpRoute> |
PoolingHttpClientConnectionManager.getRoutes() |
Modifier and Type | Method and Description |
---|---|
void |
BasicHttpClientConnectionManager.connect(org.apache.http.HttpClientConnection conn,
HttpRoute route,
int connectTimeout,
org.apache.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.connect(org.apache.http.HttpClientConnection managedConn,
HttpRoute route,
int connectTimeout,
org.apache.http.protocol.HttpContext context) |
ManagedHttpClientConnection |
ManagedHttpClientConnectionFactory.create(HttpRoute route,
org.apache.http.config.ConnectionConfig config) |
ManagedClientConnection |
SingleClientConnManager.getConnection(HttpRoute route,
Object state)
Deprecated.
Obtains a connection.
|
int |
PoolingClientConnectionManager.getMaxPerRoute(HttpRoute route)
Deprecated.
|
int |
PoolingHttpClientConnectionManager.getMaxPerRoute(HttpRoute route) |
org.apache.http.pool.PoolStats |
PoolingClientConnectionManager.getStats(HttpRoute route)
Deprecated.
|
org.apache.http.pool.PoolStats |
PoolingHttpClientConnectionManager.getStats(HttpRoute route) |
void |
AbstractPoolEntry.open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
Opens the underlying connection.
|
void |
AbstractPooledConnAdapter.open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
|
ClientConnectionRequest |
PoolingClientConnectionManager.requestConnection(HttpRoute route,
Object state)
Deprecated.
|
ClientConnectionRequest |
BasicClientConnectionManager.requestConnection(HttpRoute route,
Object state)
Deprecated.
|
ClientConnectionRequest |
SingleClientConnManager.requestConnection(HttpRoute route,
Object state)
Deprecated.
|
ConnectionRequest |
BasicHttpClientConnectionManager.requestConnection(HttpRoute route,
Object state) |
ConnectionRequest |
PoolingHttpClientConnectionManager.requestConnection(HttpRoute route,
Object state) |
void |
BasicHttpClientConnectionManager.routeComplete(org.apache.http.HttpClientConnection conn,
HttpRoute route,
org.apache.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.routeComplete(org.apache.http.HttpClientConnection managedConn,
HttpRoute route,
org.apache.http.protocol.HttpContext context) |
void |
PoolingClientConnectionManager.setMaxPerRoute(HttpRoute route,
int max)
Deprecated.
|
void |
PoolingHttpClientConnectionManager.setMaxPerRoute(HttpRoute route,
int max) |
void |
BasicHttpClientConnectionManager.upgrade(org.apache.http.HttpClientConnection conn,
HttpRoute route,
org.apache.http.protocol.HttpContext context) |
void |
PoolingHttpClientConnectionManager.upgrade(org.apache.http.HttpClientConnection managedConn,
HttpRoute route,
org.apache.http.protocol.HttpContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
PoolingHttpClientConnectionManager.enumAvailable(org.apache.http.pool.PoolEntryCallback<HttpRoute,ManagedHttpClientConnection> callback) |
protected void |
PoolingHttpClientConnectionManager.enumLeased(org.apache.http.pool.PoolEntryCallback<HttpRoute,ManagedHttpClientConnection> callback) |
Constructor and Description |
---|
AbstractPoolEntry(ClientConnectionOperator connOperator,
HttpRoute route)
Deprecated.
Creates a new pool entry.
|
SingleClientConnManager.ConnAdapter(SingleClientConnManager.PoolEntry entry,
HttpRoute route)
Creates a new connection adapter.
|
Modifier and Type | Field and Description |
---|---|
protected HttpRoute |
RouteSpecificPool.route
Deprecated.
The route this pool is for.
|
Modifier and Type | Field and Description |
---|---|
protected Map<HttpRoute,RouteSpecificPool> |
ConnPoolByRoute.routeToPool
Deprecated.
Map of route-specific pools
|
Modifier and Type | Method and Description |
---|---|
protected HttpRoute |
BasicPoolEntry.getPlannedRoute()
Deprecated.
|
HttpRoute |
RouteSpecificPool.getRoute()
Deprecated.
Obtains the route for which this pool is specific.
|
HttpRoute |
BasicPoolEntryRef.getRoute()
Deprecated.
Obtain the planned route for the referenced entry.
|
Modifier and Type | Method and Description |
---|---|
protected Map<HttpRoute,RouteSpecificPool> |
ConnPoolByRoute.createRouteToPoolMap()
Deprecated.
Creates the map for
ConnPoolByRoute.routeToPool . |
Modifier and Type | Method and Description |
---|---|
int |
ThreadSafeClientConnManager.getConnectionsInPool(HttpRoute route)
Deprecated.
Gets the total number of pooled connections for the given route.
|
int |
ConnPoolByRoute.getConnectionsInPool(HttpRoute route)
Deprecated.
|
BasicPoolEntry |
AbstractConnPool.getEntry(HttpRoute route,
Object state,
long timeout,
TimeUnit timeUnit)
Deprecated.
Obtains a pool entry with a connection within the given timeout.
|
protected BasicPoolEntry |
ConnPoolByRoute.getEntryBlocking(HttpRoute route,
Object state,
long timeout,
TimeUnit timeUnit,
WaitingThreadAborter aborter)
Deprecated.
Obtains a pool entry with a connection within the given timeout.
|
int |
ThreadSafeClientConnManager.getMaxForRoute(HttpRoute route)
Deprecated.
|
protected RouteSpecificPool |
ConnPoolByRoute.getRoutePool(HttpRoute route,
boolean create)
Deprecated.
Get a route-specific pool of available connections.
|
protected abstract void |
AbstractConnPool.handleLostEntry(HttpRoute route)
Deprecated.
|
protected void |
ConnPoolByRoute.handleLostEntry(HttpRoute route)
Deprecated.
|
protected RouteSpecificPool |
ConnPoolByRoute.newRouteSpecificPool(HttpRoute route)
Deprecated.
Creates a new route-specific pool.
|
ClientConnectionRequest |
ThreadSafeClientConnManager.requestConnection(HttpRoute route,
Object state)
Deprecated.
|
abstract PoolEntryRequest |
AbstractConnPool.requestPoolEntry(HttpRoute route,
Object state)
Deprecated.
Returns a new
PoolEntryRequest , from which a BasicPoolEntry
can be obtained, or the request can be aborted. |
PoolEntryRequest |
ConnPoolByRoute.requestPoolEntry(HttpRoute route,
Object state)
Deprecated.
|
void |
ThreadSafeClientConnManager.setMaxForRoute(HttpRoute route,
int max)
Deprecated.
|
Constructor and Description |
---|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route)
Deprecated.
Creates a new pool entry.
|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route,
long connTTL,
TimeUnit timeunit)
Deprecated.
Creates a new pool entry with a specified maximum lifetime.
|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route,
ReferenceQueue<Object> queue)
Deprecated.
|
RouteSpecificPool(HttpRoute route,
ConnPerRoute connPerRoute)
Deprecated.
Creates a new route-specific pool.
|
RouteSpecificPool(HttpRoute route,
int maxEntries)
Deprecated.
|
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.