| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.conn.AbstractPoolEntry
@Deprecated public abstract class AbstractPoolEntry
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.
| Field Summary | |
|---|---|
| protected  OperatedClientConnection | connectionDeprecated. The underlying connection being pooled or used. | 
| protected  ClientConnectionOperator | connOperatorDeprecated. The connection operator. | 
| protected  HttpRoute | routeDeprecated. The route for which this entry gets allocated. | 
| protected  Object | stateDeprecated. Connection state object | 
| protected  RouteTracker | trackerDeprecated. The tracked route, or nullbefore tracking starts. | 
| Constructor Summary | |
|---|---|
| protected  | AbstractPoolEntry(ClientConnectionOperator connOperator,
                  HttpRoute route)Deprecated. Creates a new pool entry. | 
| Method Summary | |
|---|---|
|  Object | getState()Deprecated. Returns the state object associated with this pool entry. | 
|  void | layerProtocol(org.apache.http.protocol.HttpContext context,
              org.apache.http.params.HttpParams params)Deprecated. Layers a protocol on top of an established tunnel. | 
|  void | open(HttpRoute route,
     org.apache.http.protocol.HttpContext context,
     org.apache.http.params.HttpParams params)Deprecated. Opens the underlying connection. | 
|  void | setState(Object state)Deprecated. Assigns a state object to this pool entry. | 
| protected  void | shutdownEntry()Deprecated. Shuts down the entry. | 
|  void | tunnelProxy(org.apache.http.HttpHost next,
            boolean secure,
            org.apache.http.params.HttpParams params)Deprecated. Tracks tunnelling of the connection to a chained proxy. | 
|  void | tunnelTarget(boolean secure,
             org.apache.http.params.HttpParams params)Deprecated. Tracks tunnelling of the connection to the target. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final ClientConnectionOperator connOperator
protected final OperatedClientConnection connection
protected volatile HttpRoute route
protected volatile Object state
protected volatile RouteTracker tracker
null before tracking starts.
| Constructor Detail | 
|---|
protected AbstractPoolEntry(ClientConnectionOperator connOperator,
                            HttpRoute route)
connOperator - the Connection Operator for this entryroute - the planned route for the connection,
                or null| Method Detail | 
|---|
public Object getState()
public void setState(Object state)
state - The state object
public void open(HttpRoute route,
                 org.apache.http.protocol.HttpContext context,
                 org.apache.http.params.HttpParams params)
          throws IOException
route - the route along which to open the connectioncontext - the context for opening the connectionparams - the parameters for opening the connection
IOException - in case of a problem
public void tunnelTarget(boolean secure,
                         org.apache.http.params.HttpParams params)
                  throws IOException
secure - true if the tunnel should be
                  considered secure, false otherwiseparams - the parameters for tunnelling the connection
IOException - in case of a problem
public void tunnelProxy(org.apache.http.HttpHost next,
                        boolean secure,
                        org.apache.http.params.HttpParams params)
                 throws IOException
next - the proxy to which the tunnel was established.
  See ManagedClientConnection.tunnelProxy
                  for details.secure - true if the tunnel should be
                  considered secure, false otherwiseparams - the parameters for tunnelling the connection
IOException - in case of a problem
public void layerProtocol(org.apache.http.protocol.HttpContext context,
                          org.apache.http.params.HttpParams params)
                   throws IOException
context - the context for layeringparams - the parameters for layering
IOException - in case of a problemprotected void shutdownEntry()
open(HttpRoute, HttpContext, HttpParams) is in progress,
 this will cause that open to possibly throw an IOException.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||