java.lang.Object | |
↳ | org.apache.http.impl.conn.AbstractPoolEntry |
Known Direct Subclasses |
A pool entry for use by connection manager implementations.
Pool entries work in conjunction with an
adapter.
The adapter is handed out to applications that obtain a connection.
The pool entry stores the underlying connection and tracks the
route established.
The adapter delegates methods for establishing the route to
it's pool entry.
If the managed connections is released or revoked, the adapter
gets disconnected, but the pool entry still contains the
underlying connection and the established route.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
connOperator | The connection operator. | ||||||||||
connection | The underlying connection being pooled or used. | ||||||||||
route | The route for which this entry gets allocated. | ||||||||||
state | Connection state object | ||||||||||
tracker | The tracked route, or null before tracking starts. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new pool entry.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the state object associated with this pool entry.
| |||||||||||
Layers a protocol on top of an established tunnel.
| |||||||||||
Opens the underlying connection.
| |||||||||||
Assigns a state object to this pool entry.
| |||||||||||
Tracks tunnelling of the connection to a chained proxy.
| |||||||||||
Tracks tunnelling of the connection to the target.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Shuts down the entry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
The connection operator.
The underlying connection being pooled or used.
The route for which this entry gets allocated.
Connection state object
The tracked route, or null
before tracking starts.
Creates a new pool entry.
connOperator | the Connection Operator for this entry |
---|---|
route | the planned route for the connection,
or null
|
Returns the state object associated with this pool entry.
Layers a protocol on top of an established tunnel.
context | the context for layering |
---|---|
params | the parameters for layering |
IOException | in case of a problem |
---|
Opens the underlying connection.
route | the route along which to open the connection |
---|---|
context | the context for opening the connection |
params | the parameters for opening the connection |
IOException | in case of a problem |
---|
Assigns a state object to this pool entry.
state | The state object |
---|
Tracks tunnelling of the connection to a chained proxy. The tunnel has to be established outside by sending a CONNECT request to the previous proxy.
next | the proxy to which the tunnel was established. See ManagedClientConnection.tunnelProxy for details. |
---|---|
secure | true if the tunnel should be
considered secure, false otherwise |
params | the parameters for tunnelling the connection |
IOException | in case of a problem |
---|
Tracks tunnelling of the connection to the target. The tunnel has to be established outside by sending a CONNECT request to the (last) proxy.
secure | true if the tunnel should be
considered secure, false otherwise |
---|---|
params | the parameters for tunnelling the connection |
IOException | in case of a problem |
---|
Shuts down the entry. If open(HttpRoute, HttpContext, HttpParams) is in progress, this will cause that open to possibly throw an IOException.