Package | Description |
---|---|
org.apache.http.conn |
The client-side connection management and handling API that provides interfaces
and implementations for opening and managing client side HTTP connections.
|
org.apache.http.conn.params |
Parameters for configuring HTTP connection and connection management
related classes.
|
org.apache.http.conn.routing |
The client-side route representation and tracking API.
|
org.apache.http.impl.client |
Default implementations for interfaces in
org.apache.http.client . |
org.apache.http.impl.conn |
Default implementations for interfaces in
org.apache.http.impl.conn and related classes. |
org.apache.http.impl.conn.tsccm |
The implementation of a thread-safe client connection manager.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
ManagedClientConnection.getRoute()
Obtains the current route of this connection.
|
HttpRoute |
HttpRoutedConnection.getRoute()
Obtains the current route of this connection.
|
Modifier and Type | Method and Description |
---|---|
void |
ManagedClientConnection.open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Opens this connection according to the given route.
|
ClientConnectionRequest |
ClientConnectionManager.requestConnection(HttpRoute route,
Object state)
Returns a new
ClientConnectionRequest , from which a
ManagedClientConnection can be obtained or the request can be
aborted. |
Modifier and Type | Field and Description |
---|---|
static HttpRoute |
ConnRouteParams.NO_ROUTE
A special value indicating "no route".
|
Modifier and Type | Method and Description |
---|---|
static HttpRoute |
ConnRouteParams.getForcedRoute(org.apache.http.params.HttpParams params)
Obtains the
FORCED_ROUTE
parameter value. |
Modifier and Type | Method and Description |
---|---|
int |
ConnPerRouteBean.getMaxForRoute(HttpRoute route) |
int |
ConnPerRoute.getMaxForRoute(HttpRoute route) |
static void |
ConnRouteParams.setForcedRoute(org.apache.http.params.HttpParams params,
HttpRoute route)
Sets the
FORCED_ROUTE
parameter value. |
void |
ConnRouteParamBean.setForcedRoute(HttpRoute route) |
void |
ConnPerRouteBean.setMaxForRoute(HttpRoute route,
int max) |
Modifier and Type | Method and Description |
---|---|
void |
ConnPerRouteBean.setMaxForRoutes(Map<HttpRoute,Integer> map) |
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 |
Modifier and Type | Method and Description |
---|---|
protected HttpRoute |
DefaultRequestDirector.determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Determines the route for a request.
|
HttpRoute |
RoutedRequest.getRoute() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.HttpRequest |
DefaultRequestDirector.createConnectRequest(HttpRoute route,
org.apache.http.protocol.HttpContext context)
Creates the CONNECT request for tunnelling.
|
protected boolean |
DefaultRequestDirector.createTunnelToProxy(HttpRoute route,
int hop,
org.apache.http.protocol.HttpContext context)
Creates a tunnel to an intermediate proxy.
|
protected boolean |
DefaultRequestDirector.createTunnelToTarget(HttpRoute route,
org.apache.http.protocol.HttpContext context)
Creates a tunnel to the target server.
|
protected void |
DefaultRequestDirector.establishRoute(HttpRoute route,
org.apache.http.protocol.HttpContext context)
Establishes the target route.
|
protected void |
DefaultRequestDirector.rewriteRequestURI(RequestWrapper request,
HttpRoute route) |
Constructor and Description |
---|
RoutedRequest(RequestWrapper req,
HttpRoute route)
Creates a new routed request.
|
Modifier and Type | Field and Description |
---|---|
protected HttpRoute |
AbstractPoolEntry.route
The route for which this entry gets allocated.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
ProxySelectorRoutePlanner.determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
HttpRoute |
DefaultHttpRoutePlanner.determineRoute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
HttpRoute |
AbstractPooledConnAdapter.getRoute() |
Modifier and Type | Method and Description |
---|---|
ManagedClientConnection |
SingleClientConnManager.getConnection(HttpRoute route,
Object state)
Obtains a connection.
|
void |
AbstractPooledConnAdapter.open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params) |
void |
AbstractPoolEntry.open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Opens the underlying connection.
|
ClientConnectionRequest |
SingleClientConnManager.requestConnection(HttpRoute route,
Object state) |
Constructor and Description |
---|
AbstractPoolEntry(ClientConnectionOperator connOperator,
HttpRoute route)
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
The route this pool is for.
|
Modifier and Type | Field and Description |
---|---|
protected Map<HttpRoute,RouteSpecificPool> |
ConnPoolByRoute.routeToPool
Map of route-specific pools
|
Modifier and Type | Method and Description |
---|---|
protected HttpRoute |
BasicPoolEntry.getPlannedRoute() |
HttpRoute |
RouteSpecificPool.getRoute()
Obtains the route for which this pool is specific.
|
HttpRoute |
BasicPoolEntryRef.getRoute()
Obtain the planned route for the referenced entry.
|
Modifier and Type | Method and Description |
---|---|
protected Map<HttpRoute,RouteSpecificPool> |
ConnPoolByRoute.createRouteToPoolMap()
Creates the map for
ConnPoolByRoute.routeToPool . |
Modifier and Type | Method and Description |
---|---|
int |
ThreadSafeClientConnManager.getConnectionsInPool(HttpRoute route)
Gets the total number of pooled connections for the given route.
|
int |
ConnPoolByRoute.getConnectionsInPool(HttpRoute route) |
BasicPoolEntry |
AbstractConnPool.getEntry(HttpRoute route,
Object state,
long timeout,
TimeUnit tunit)
Deprecated.
Obtains a pool entry with a connection within the given timeout.
|
protected BasicPoolEntry |
ConnPoolByRoute.getEntryBlocking(HttpRoute route,
Object state,
long timeout,
TimeUnit tunit,
WaitingThreadAborter aborter)
Obtains a pool entry with a connection within the given timeout.
|
int |
ThreadSafeClientConnManager.getMaxForRoute(HttpRoute route) |
protected RouteSpecificPool |
ConnPoolByRoute.getRoutePool(HttpRoute route,
boolean create)
Get a route-specific pool of available connections.
|
protected abstract void |
AbstractConnPool.handleLostEntry(HttpRoute route)
Deprecated.
|
protected void |
ConnPoolByRoute.handleLostEntry(HttpRoute route) |
protected RouteSpecificPool |
ConnPoolByRoute.newRouteSpecificPool(HttpRoute route)
Creates a new route-specific pool.
|
ClientConnectionRequest |
ThreadSafeClientConnManager.requestConnection(HttpRoute route,
Object state) |
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) |
void |
ThreadSafeClientConnManager.setMaxForRoute(HttpRoute route,
int max) |
Constructor and Description |
---|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route)
Creates a new pool entry.
|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route,
long connTTL,
TimeUnit timeunit)
Creates a new pool entry with a specified maximum lifetime.
|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route,
ReferenceQueue<Object> queue)
Deprecated.
do not use
|
RouteSpecificPool(HttpRoute route,
ConnPerRoute connPerRoute)
Creates a new route-specific pool.
|
RouteSpecificPool(HttpRoute route,
int maxEntries)
Deprecated.
|
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.