| 软件包 | 描述 |
|---|---|
| org.apache.http.client |
客户端HTTP通信API。
|
| org.apache.http.conn |
客户端连接管理API。
|
| org.apache.http.conn.params |
已过时。
|
| org.apache.http.conn.routing |
客户端连接路由API。
|
| org.apache.http.impl.client |
默认HTTP客户端实现。
|
| org.apache.http.impl.conn |
客户端连接管理功能的默认实现。
|
| org.apache.http.impl.conn.tsccm |
已过时。
|
| org.apache.http.impl.execchain |
HTTP请求执行链API。
|
| Modifier and Type | Method and Description |
|---|---|
void |
BackoffManager.backOff(HttpRoute route)
当我们决定使用连接的结果应该被解释为退避信号时调用。
|
void |
BackoffManager.probe(HttpRoute route)
当我们确定使用连接的结果已经成功,并且我们可以探索更多的连接时调用。
|
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
HttpRoutedConnection.getRoute()
已过时。
获取此连接的当前路由。
|
HttpRoute |
ManagedClientConnection.getRoute()
已过时。
获取此连接的当前路由。
|
| Modifier and Type | Method and Description |
|---|---|
void |
HttpClientConnectionManager.connect(HttpClientConnection conn, HttpRoute route, int connectTimeout, HttpContext context)
在直接路由的情况下将底层连接套接字连接到连接目标,或者通过代理(或多个代理)路由时将第一个代理跳转到第一个代理跳转。
|
void |
ManagedClientConnection.open(HttpRoute route, HttpContext context, HttpParams params)
已过时。
根据给定的路线打开这个连接。
|
ClientConnectionRequest |
ClientConnectionManager.requestConnection(HttpRoute route, Object state)
已过时。
返回一个新的 ClientConnectionRequest ,从中可以获得ManagedClientConnection或请求可以中止。
|
ConnectionRequest |
HttpClientConnectionManager.requestConnection(HttpRoute route, Object state)
返回一个新的 ConnectionRequest ,从中可以获得HttpClientConnection或请求可以中止。
|
void |
HttpClientConnectionManager.routeComplete(HttpClientConnection conn, HttpRoute route, HttpContext context)
将连接标记为完全建立,并完成所有中间跳。
|
void |
HttpClientConnectionManager.upgrade(HttpClientConnection conn, HttpRoute route, HttpContext context)
在将
CONNECT方法执行到所有中间代理跳数后,将底层连接套接字升级到TLS / SSL(或其他分层协议)
|
| Modifier and Type | Field and Description |
|---|---|
static HttpRoute |
ConnRouteParams.NO_ROUTE
已过时。
指示“无路线”的特殊值。
|
| Modifier and Type | Method and Description |
|---|---|
static HttpRoute |
ConnRouteParams.getForcedRoute(HttpParams params)
已过时。
获取
FORCED_ROUTE参数值。
|
| Modifier and Type | Method and Description |
|---|---|
int |
ConnPerRoute.getMaxForRoute(HttpRoute route)
已过时。
|
int |
ConnPerRouteBean.getMaxForRoute(HttpRoute route)
已过时。
|
static void |
ConnRouteParams.setForcedRoute(HttpParams params, HttpRoute route)
已过时。
设置
FORCED_ROUTE参数值。
|
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(HttpHost target, HttpRequest request, HttpContext context)
确定请求的路由。
|
HttpRoute |
RouteTracker.toRoute()
获得跟踪的路线。
|
| Constructor and Description |
|---|
RouteTracker(HttpRoute route)
为给定的路线创建一个新的跟踪器。
|
| Modifier and Type | Field and Description |
|---|---|
protected HttpRoute |
RoutedRequest.route
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpRoute |
DefaultRequestDirector.determineRoute(HttpHost targetHost, HttpRequest request, HttpContext context)
已过时。
确定请求的路由。
|
HttpRoute |
RoutedRequest.getRoute()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
void |
AIMDBackoffManager.backOff(HttpRoute route) |
protected HttpRequest |
DefaultRequestDirector.createConnectRequest(HttpRoute route, HttpContext context)
已过时。
创建CONNECT隧道请求。
|
protected boolean |
DefaultRequestDirector.createTunnelToProxy(HttpRoute route, int hop, HttpContext context)
已过时。
创建到中间代理的隧道。
|
protected boolean |
DefaultRequestDirector.createTunnelToTarget(HttpRoute route, HttpContext context)
已过时。
创建到目标服务器的隧道。
|
protected void |
DefaultRequestDirector.establishRoute(HttpRoute route, HttpContext context)
已过时。
建立目标路线。
|
void |
AIMDBackoffManager.probe(HttpRoute route) |
protected void |
DefaultRequestDirector.rewriteRequestURI(RequestWrapper request, HttpRoute route)
已过时。
|
| Constructor and Description |
|---|
RoutedRequest(RequestWrapper req, HttpRoute route)
已过时。
创建一个新的路由请求。
|
| Constructor and Description |
|---|
AIMDBackoffManager(ConnPoolControl<HttpRoute> connPerRoute)
创建 AIMDBackoffManager以管理由给定的ConnPoolControl表示的每主机连接池大小。
|
ProxyClient(HttpConnectionFactory<HttpRoute,ManagedHttpClientConnection> connFactory, ConnectionConfig connectionConfig, RequestConfig requestConfig) |
| Modifier and Type | Field and Description |
|---|---|
protected HttpRoute |
AbstractPoolEntry.route
已过时。
该条目被分配的路由。
|
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
ProxySelectorRoutePlanner.determineRoute(HttpHost target, HttpRequest request, HttpContext context)
已过时。
|
HttpRoute |
DefaultRoutePlanner.determineRoute(HttpHost host, HttpRequest request, HttpContext context) |
HttpRoute |
DefaultHttpRoutePlanner.determineRoute(HttpHost target, HttpRequest request, HttpContext context)
已过时。
|
HttpRoute |
AbstractPooledConnAdapter.getRoute()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpRoute> |
PoolingHttpClientConnectionManager.getRoutes() |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicHttpClientConnectionManager.connect(HttpClientConnection conn, HttpRoute route, int connectTimeout, HttpContext context) |
void |
PoolingHttpClientConnectionManager.connect(HttpClientConnection managedConn, HttpRoute route, int connectTimeout, HttpContext context) |
ManagedHttpClientConnection |
ManagedHttpClientConnectionFactory.create(HttpRoute route, ConnectionConfig config) |
ManagedClientConnection |
SingleClientConnManager.getConnection(HttpRoute route, Object state)
已过时。
获取连接。
|
int |
PoolingClientConnectionManager.getMaxPerRoute(HttpRoute route)
已过时。
|
int |
PoolingHttpClientConnectionManager.getMaxPerRoute(HttpRoute route) |
PoolStats |
PoolingClientConnectionManager.getStats(HttpRoute route)
已过时。
|
PoolStats |
PoolingHttpClientConnectionManager.getStats(HttpRoute route) |
void |
AbstractPooledConnAdapter.open(HttpRoute route, HttpContext context, HttpParams params)
已过时。
|
void |
AbstractPoolEntry.open(HttpRoute route, HttpContext context, HttpParams params)
已过时。
打开基础连接。
|
ClientConnectionRequest |
BasicClientConnectionManager.requestConnection(HttpRoute route, Object state)
已过时。
|
ClientConnectionRequest |
SingleClientConnManager.requestConnection(HttpRoute route, Object state)
已过时。
|
ConnectionRequest |
BasicHttpClientConnectionManager.requestConnection(HttpRoute route, Object state) |
ClientConnectionRequest |
PoolingClientConnectionManager.requestConnection(HttpRoute route, Object state)
已过时。
|
ConnectionRequest |
PoolingHttpClientConnectionManager.requestConnection(HttpRoute route, Object state) |
void |
BasicHttpClientConnectionManager.routeComplete(HttpClientConnection conn, HttpRoute route, HttpContext context) |
void |
PoolingHttpClientConnectionManager.routeComplete(HttpClientConnection managedConn, HttpRoute route, HttpContext context) |
void |
PoolingClientConnectionManager.setMaxPerRoute(HttpRoute route, int max)
已过时。
|
void |
PoolingHttpClientConnectionManager.setMaxPerRoute(HttpRoute route, int max) |
void |
BasicHttpClientConnectionManager.upgrade(HttpClientConnection conn, HttpRoute route, HttpContext context) |
void |
PoolingHttpClientConnectionManager.upgrade(HttpClientConnection managedConn, HttpRoute route, HttpContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PoolingHttpClientConnectionManager.enumAvailable(PoolEntryCallback<HttpRoute,ManagedHttpClientConnection> callback) |
protected void |
PoolingHttpClientConnectionManager.enumLeased(PoolEntryCallback<HttpRoute,ManagedHttpClientConnection> callback) |
| Constructor and Description |
|---|
AbstractPoolEntry(ClientConnectionOperator connOperator, HttpRoute route)
已过时。
创建一个新的池条目。
|
SingleClientConnManager.ConnAdapter(SingleClientConnManager.PoolEntry entry, HttpRoute route)
创建一个新的连接适配器。
|
| Modifier and Type | Field and Description |
|---|---|
protected HttpRoute |
RouteSpecificPool.route
已过时。
这个游泳池的路线。
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<HttpRoute,RouteSpecificPool> |
ConnPoolByRoute.routeToPool
已过时。
路线专用池的映射
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpRoute |
BasicPoolEntry.getPlannedRoute()
已过时。
|
HttpRoute |
BasicPoolEntryRef.getRoute()
已过时。
获取参考条目的计划路线。
|
HttpRoute |
RouteSpecificPool.getRoute()
已过时。
获取此池是特定的路由。
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<HttpRoute,RouteSpecificPool> |
ConnPoolByRoute.createRouteToPoolMap()
已过时。
创建地图
ConnPoolByRoute.routeToPool 。
|
| Modifier and Type | Method and Description |
|---|---|
int |
ThreadSafeClientConnManager.getConnectionsInPool(HttpRoute route)
已过时。
获取给定路由的总共连接数。
|
int |
ConnPoolByRoute.getConnectionsInPool(HttpRoute route)
已过时。
|
BasicPoolEntry |
AbstractConnPool.getEntry(HttpRoute route, Object state, long timeout, TimeUnit tunit)
已过时。
在给定的超时内获取连接的池条目。
|
protected BasicPoolEntry |
ConnPoolByRoute.getEntryBlocking(HttpRoute route, Object state, long timeout, TimeUnit tunit, WaitingThreadAborter aborter)
已过时。
在给定的超时内获取连接的池条目。
|
int |
ThreadSafeClientConnManager.getMaxForRoute(HttpRoute route)
已过时。
|
protected RouteSpecificPool |
ConnPoolByRoute.getRoutePool(HttpRoute route, boolean create)
已过时。
获取可用连接的路由特定池。
|
protected abstract void |
AbstractConnPool.handleLostEntry(HttpRoute route)
已过时。
|
protected void |
ConnPoolByRoute.handleLostEntry(HttpRoute route)
已过时。
|
protected RouteSpecificPool |
ConnPoolByRoute.newRouteSpecificPool(HttpRoute route)
已过时。
创建一个新的路由特定池。
|
ClientConnectionRequest |
ThreadSafeClientConnManager.requestConnection(HttpRoute route, Object state)
已过时。
|
abstract PoolEntryRequest |
AbstractConnPool.requestPoolEntry(HttpRoute route, Object state)
已过时。
返回一个新的 PoolEntryRequest ,从中可以获得BasicPoolEntry ,或者请求可以中止。
|
PoolEntryRequest |
ConnPoolByRoute.requestPoolEntry(HttpRoute route, Object state)
已过时。
|
void |
ThreadSafeClientConnManager.setMaxForRoute(HttpRoute route, int max)
已过时。
|
| Constructor and Description |
|---|
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)
已过时。
创建一个新的池条目。
|
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit)
已过时。
创建一个具有指定最大生命周期的新池条目。
|
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue)
已过时。
|
RouteSpecificPool(HttpRoute route, ConnPerRoute connPerRoute)
已过时。
创建一个新的路由特定池。
|
RouteSpecificPool(HttpRoute route, int maxEntries)
|
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.