Package org.apache.http.impl.conn
Class AbstractPoolEntry
java.lang.Object
org.apache.http.impl.conn.AbstractPoolEntry
- Direct Known Subclasses:
BasicPoolEntry
Deprecated.
(4.2) do not use
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
its 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.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptiongetState()
Deprecated.Returns the state object associated with this pool entry.void
layerProtocol
(HttpContext context, HttpParams params) Deprecated.Layers a protocol on top of an established tunnel.void
open
(HttpRoute route, HttpContext context, HttpParams params) Deprecated.Opens the underlying connection.void
Deprecated.Assigns a state object to this pool entry.void
tunnelProxy
(HttpHost next, boolean secure, HttpParams params) Deprecated.Tracks tunnelling of the connection to a chained proxy.void
tunnelTarget
(boolean secure, HttpParams params) Deprecated.Tracks tunnelling of the connection to the target.
-
Method Details
-
getState
Deprecated.Returns the state object associated with this pool entry.- Returns:
- The state object
-
setState
Deprecated.Assigns a state object to this pool entry.- Parameters:
state
- The state object
-
open
Deprecated.Opens the underlying connection.- Parameters:
route
- the route along which to open the connectioncontext
- the context for opening the connectionparams
- the parameters for opening the connection- Throws:
IOException
- in case of a problem
-
tunnelTarget
Deprecated.Tracks tunnelling of the connection to the target. The tunnel has to be established outside by sending a CONNECT request to the (last) proxy.- Parameters:
secure
-true
if the tunnel should be considered secure,false
otherwiseparams
- the parameters for tunnelling the connection- Throws:
IOException
- in case of a problem
-
tunnelProxy
Deprecated.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.- Parameters:
next
- the proxy to which the tunnel was established. SeeManagedClientConnection.tunnelProxy
for details.secure
-true
if the tunnel should be considered secure,false
otherwiseparams
- the parameters for tunnelling the connection- Throws:
IOException
- in case of a problem
-
layerProtocol
Deprecated.Layers a protocol on top of an established tunnel.- Parameters:
context
- the context for layeringparams
- the parameters for layering- Throws:
IOException
- in case of a problem
-