Package org.apache.http.impl.conn.tsccm
Class BasicPooledConnAdapter
java.lang.Object
org.apache.http.impl.conn.AbstractClientConnAdapter
org.apache.http.impl.conn.AbstractPooledConnAdapter
org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter
- All Implemented Interfaces:
ConnectionReleaseTrigger,ManagedClientConnection,HttpClientConnection,HttpConnection,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 -
Constructor Summary
Constructors Modifier Constructor Description protectedBasicPooledConnAdapter(ThreadSafeClientConnManager tsccm, AbstractPoolEntry entry)Creates a new adapter. -
Method Summary
Modifier and Type Method Description protected voiddetach()Detaches this adapter from the wrapped connection.protected ClientConnectionManagergetManager()protected AbstractPoolEntrygetPoolEntry()Obtains the pool entry.Methods inherited from class org.apache.http.impl.conn.AbstractPooledConnAdapter
assertAttached, close, getRoute, getState, layerProtocol, open, setState, shutdown, tunnelProxy, tunnelTargetMethods inherited from class org.apache.http.impl.conn.AbstractClientConnAdapter
abortConnection, assertNotAborted, assertValid, flush, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocketTimeout, getSSLSession, getWrappedConnection, isMarkedReusable, isOpen, isResponseAvailable, isSecure, isStale, markReusable, receiveResponseEntity, receiveResponseHeader, releaseConnection, sendRequestEntity, sendRequestHeader, setIdleDuration, setSocketTimeout, unmarkReusable
-
Constructor Details
-
BasicPooledConnAdapter
Creates a new adapter.- Parameters:
tsccm- the connection managerentry- the pool entry for the connection being wrapped
-
-
Method Details
-
getManager
- Overrides:
getManagerin classAbstractClientConnAdapter
-
getPoolEntry
Obtains the pool entry.- Returns:
- the pool entry, or
nullif detached
-
detach
protected void detach()Description copied from class:AbstractPooledConnAdapterDetaches this adapter from the wrapped connection. This adapter becomes useless.- Overrides:
detachin classAbstractPooledConnAdapter
-