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:
Closeable,AutoCloseable,ConnectionReleaseTrigger,HttpRoutedConnection,ManagedClientConnection,ManagedHttpClientConnection,org.apache.http.HttpClientConnection,org.apache.http.HttpConnection,org.apache.http.HttpInetConnection,org.apache.http.protocol.HttpContext
Deprecated.
(4.2) do not use
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.- Since:
- 4.0
-
Field Summary
Fields inherited from class org.apache.http.impl.conn.AbstractPooledConnAdapter
poolEntryFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.Creates a new adapter. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddetach()Deprecated.Detaches this adapter from the wrapped connection.protected ClientConnectionManagerDeprecated.protected AbstractPoolEntryDeprecated.Obtains the pool entry.Methods inherited from class org.apache.http.impl.conn.AbstractPooledConnAdapter
assertAttached, assertValid, close, getId, getRoute, getState, layerProtocol, open, setState, shutdown, tunnelProxy, tunnelTargetMethods inherited from class org.apache.http.impl.conn.AbstractClientConnAdapter
abortConnection, assertNotAborted, assertValid, bind, flush, getAttribute, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, getSSLSession, getWrappedConnection, isMarkedReusable, isOpen, isReleased, isResponseAvailable, isSecure, isStale, markReusable, receiveResponseEntity, receiveResponseHeader, releaseConnection, removeAttribute, sendRequestEntity, sendRequestHeader, setAttribute, setIdleDuration, setSocketTimeout, unmarkReusable
-
Constructor Details
-
BasicPooledConnAdapter
Deprecated.Creates a new adapter.- Parameters:
tsccm- the connection managerentry- the pool entry for the connection being wrapped
-
-
Method Details
-
getManager
Deprecated.- Overrides:
getManagerin classAbstractClientConnAdapter
-
getPoolEntry
Deprecated.Description copied from class:AbstractPooledConnAdapterObtains the pool entry.- Overrides:
getPoolEntryin classAbstractPooledConnAdapter- Returns:
- the pool entry, or
nullif detached
-
detach
protected void detach()Deprecated.Description copied from class:AbstractPooledConnAdapterDetaches this adapter from the wrapped connection. This adapter becomes useless.- Overrides:
detachin classAbstractPooledConnAdapter
-