org.apache.http.impl.conn.tsccm
Class BasicPooledConnAdapter

java.lang.Object
  extended by org.apache.http.impl.conn.AbstractClientConnAdapter
      extended by org.apache.http.impl.conn.AbstractPooledConnAdapter
          extended by org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter
All Implemented Interfaces:
ConnectionReleaseTrigger, ManagedClientConnection, org.apache.http.HttpClientConnection, org.apache.http.HttpConnection, org.apache.http.HttpInetConnection

public class BasicPooledConnAdapter
extends AbstractPooledConnAdapter

A connection wrapper and callback handler. All connections given out by the manager are wrappers which can be detached to prevent further use on release.


Field Summary
 
Fields inherited from class org.apache.http.impl.conn.AbstractPooledConnAdapter
poolEntry
 
Fields inherited from class org.apache.http.impl.conn.AbstractClientConnAdapter
connManager, markedReusable, wrappedConnection
 
Constructor Summary
protected BasicPooledConnAdapter(ThreadSafeClientConnManager tsccm, AbstractPoolEntry entry)
          Creates a new adapter.
 
Method Summary
protected  void detach()
          Detaches this adapter from the wrapped connection.
protected  ClientConnectionManager getManager()
          Obtains the connection manager.
protected  AbstractPoolEntry getPoolEntry()
          Obtains the pool entry.
 
Methods inherited from class org.apache.http.impl.conn.AbstractPooledConnAdapter
assertAttached, close, getRoute, layerProtocol, open, shutdown, tunnelProxy, tunnelTarget
 
Methods inherited from class org.apache.http.impl.conn.AbstractClientConnAdapter
abortConnection, assertWrappedConn, flush, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocketTimeout, getSSLSession, isMarkedReusable, isOpen, isResponseAvailable, isSecure, isStale, markReusable, receiveResponseEntity, receiveResponseHeader, releaseConnection, sendRequestEntity, sendRequestHeader, setSocketTimeout, unmarkReusable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.conn.ManagedClientConnection
getSSLSession, isMarkedReusable, isSecure, markReusable, unmarkReusable
 
Methods inherited from interface org.apache.http.HttpClientConnection
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader
 
Methods inherited from interface org.apache.http.HttpConnection
getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout
 
Methods inherited from interface org.apache.http.HttpInetConnection
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
 
Methods inherited from interface org.apache.http.HttpConnection
getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout
 
Methods inherited from interface org.apache.http.conn.ConnectionReleaseTrigger
abortConnection, releaseConnection
 

Constructor Detail

BasicPooledConnAdapter

protected BasicPooledConnAdapter(ThreadSafeClientConnManager tsccm,
                                 AbstractPoolEntry entry)
Creates a new adapter.

Parameters:
tsccm - the connection manager
entry - the pool entry for the connection being wrapped
Method Detail

getManager

protected ClientConnectionManager getManager()
Obtains the connection manager.

Returns:
the connection manager, or null if detached

getPoolEntry

protected AbstractPoolEntry getPoolEntry()
Obtains the pool entry.

Returns:
the pool entry, or null if detached

detach

protected void detach()
Description copied from class: AbstractPooledConnAdapter
Detaches this adapter from the wrapped connection. This adapter becomes useless.

Overrides:
detach in class AbstractPooledConnAdapter


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.