Package | Description |
---|---|
org.apache.http.conn |
Client connection management APIs.
|
org.apache.http.impl |
Default implementations of HTTP connections for synchronous,
blocking communication.
|
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.
|
org.apache.http.impl.pool |
Default implementations of client side connection pools
for synchronous, blocking communication.
|
org.apache.http.protocol |
Core HTTP protocol execution framework and HTTP protocol handlers
for synchronous, blocking communication.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ManagedClientConnection
Deprecated.
(4.3) replaced by
HttpClientConnectionManager . |
interface |
ManagedHttpClientConnection
Represents a managed connection whose state and life cycle is managed by
a connection manager.
|
interface |
OperatedClientConnection
Deprecated.
(4.3) replaced by
HttpClientConnectionManager . |
Modifier and Type | Method and Description |
---|---|
HttpClientConnection |
ConnectionRequest.get(long timeout,
java.util.concurrent.TimeUnit tunit)
Obtains a connection within a given time.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpClientConnectionManager.connect(HttpClientConnection conn,
HttpRoute route,
int connectTimeout,
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 |
HttpClientConnectionManager.releaseConnection(HttpClientConnection conn,
java.lang.Object newState,
long validDuration,
java.util.concurrent.TimeUnit timeUnit)
Releases the connection back to the manager making it potentially
re-usable by other consumers.
|
void |
HttpClientConnectionManager.routeComplete(HttpClientConnection conn,
HttpRoute route,
HttpContext context)
Marks the connection as fully established with all its intermediate
hops completed.
|
void |
HttpClientConnectionManager.upgrade(HttpClientConnection conn,
HttpRoute route,
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 | Class and Description |
---|---|
class |
AbstractHttpClientConnection
Deprecated.
(4.3) use
DefaultBHttpClientConnection |
class |
DefaultBHttpClientConnection
Default implementation of
HttpClientConnection . |
class |
DefaultHttpClientConnection
Deprecated.
(4.3) use
DefaultBHttpClientConnection |
class |
SocketHttpClientConnection
Deprecated.
(4.3) use
DefaultBHttpClientConnection |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientConnAdapter
Deprecated.
(4.2) do not use
|
class |
AbstractPooledConnAdapter
Deprecated.
(4.2) do not use
|
(package private) class |
CPoolProxy |
class |
DefaultClientConnection
Deprecated.
(4.3) use
ManagedHttpClientConnectionFactory . |
class |
DefaultManagedHttpClientConnection
Default
ManagedHttpClientConnection implementation. |
(package private) class |
LoggingManagedHttpClientConnection |
(package private) class |
ManagedClientConnectionImpl
Deprecated.
(4.3) use
ManagedHttpClientConnectionFactory . |
protected class |
SingleClientConnManager.ConnAdapter
Deprecated.
The connection adapter used by this manager.
|
Modifier and Type | Method and Description |
---|---|
(package private) HttpClientConnection |
BasicHttpClientConnectionManager.getConnection(HttpRoute route,
java.lang.Object state) |
protected HttpClientConnection |
PoolingHttpClientConnectionManager.leaseConnection(java.util.concurrent.Future<CPoolEntry> future,
long timeout,
java.util.concurrent.TimeUnit tunit) |
static HttpClientConnection |
CPoolProxy.newProxy(CPoolEntry poolEntry) |
Modifier and Type | Method and Description |
---|---|
void |
PoolingHttpClientConnectionManager.connect(HttpClientConnection managedConn,
HttpRoute route,
int connectTimeout,
HttpContext context) |
void |
BasicHttpClientConnectionManager.connect(HttpClientConnection conn,
HttpRoute route,
int connectTimeout,
HttpContext context) |
static CPoolEntry |
CPoolProxy.detach(HttpClientConnection conn) |
static CPoolEntry |
CPoolProxy.getPoolEntry(HttpClientConnection proxy) |
void |
PoolingHttpClientConnectionManager.releaseConnection(HttpClientConnection managedConn,
java.lang.Object state,
long keepalive,
java.util.concurrent.TimeUnit tunit) |
void |
BasicHttpClientConnectionManager.releaseConnection(HttpClientConnection conn,
java.lang.Object state,
long keepalive,
java.util.concurrent.TimeUnit tunit) |
void |
PoolingHttpClientConnectionManager.routeComplete(HttpClientConnection managedConn,
HttpRoute route,
HttpContext context) |
void |
BasicHttpClientConnectionManager.routeComplete(HttpClientConnection conn,
HttpRoute route,
HttpContext context) |
void |
PoolingHttpClientConnectionManager.upgrade(HttpClientConnection managedConn,
HttpRoute route,
HttpContext context) |
void |
BasicHttpClientConnectionManager.upgrade(HttpClientConnection conn,
HttpRoute route,
HttpContext context) |
Modifier and Type | Class and Description |
---|---|
class |
BasicPooledConnAdapter
Deprecated.
(4.2) do not use
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
MainClientExec.establishRoute(AuthState proxyAuthState,
HttpClientConnection managedConn,
HttpRoute route,
HttpRequest request,
HttpClientContext context)
Establishes the target route.
|
Constructor and Description |
---|
ConnectionHolder(Log log,
HttpClientConnectionManager manager,
HttpClientConnection managedConn) |
Modifier and Type | Method and Description |
---|---|
HttpClientConnection |
BasicConnFactory.create(HttpHost host) |
protected HttpClientConnection |
BasicConnFactory.create(java.net.Socket socket,
HttpParams params)
Deprecated.
(4.3) no longer used.
|
Modifier and Type | Method and Description |
---|---|
protected BasicPoolEntry |
BasicConnPool.createEntry(HttpHost host,
HttpClientConnection conn) |
Constructor and Description |
---|
BasicPoolEntry(java.lang.String id,
HttpHost route,
HttpClientConnection conn) |
Constructor and Description |
---|
BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory) |
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HttpRequestExecutor.doReceiveResponse(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Waits for and receives a response.
|
protected HttpResponse |
HttpRequestExecutor.doSendRequest(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Send the given request over the given connection.
|
HttpResponse |
HttpRequestExecutor.execute(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Sends the request and obtain a response.
|