public class

BasicPooledConnAdapter

extends AbstractPooledConnAdapter
java.lang.Object
   ↳ org.apache.http.impl.conn.AbstractClientConnAdapter
     ↳ org.apache.http.impl.conn.AbstractPooledConnAdapter
       ↳ org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface org.apache.http.protocol.HttpContext
[Expand]
Inherited Fields
From class org.apache.http.impl.conn.AbstractPooledConnAdapter
Protected Constructors
BasicPooledConnAdapter(ThreadSafeClientConnManager tsccm, AbstractPoolEntry entry)
Creates a new adapter.
Protected Methods
void detach()
Detaches this adapter from the wrapped connection.
ClientConnectionManager getManager()
AbstractPoolEntry getPoolEntry()
Obtains the pool entry.
[Expand]
Inherited Methods
From class org.apache.http.impl.conn.AbstractPooledConnAdapter
From class org.apache.http.impl.conn.AbstractClientConnAdapter
From class java.lang.Object
From interface org.apache.http.HttpClientConnection
From interface org.apache.http.HttpConnection
From interface org.apache.http.HttpInetConnection
From interface org.apache.http.conn.ConnectionReleaseTrigger
From interface org.apache.http.conn.HttpRoutedConnection
From interface org.apache.http.conn.ManagedClientConnection
From interface org.apache.http.protocol.HttpContext

Protected Constructors

protected BasicPooledConnAdapter (ThreadSafeClientConnManager tsccm, AbstractPoolEntry entry)

Also: HttpClient

Creates a new adapter.

Parameters
tsccm the connection manager
entry the pool entry for the connection being wrapped

Protected Methods

protected void detach ()

Also: HttpClient

Detaches this adapter from the wrapped connection. This adapter becomes useless.

protected ClientConnectionManager getManager ()

Also: HttpClient

protected AbstractPoolEntry getPoolEntry ()

Also: HttpClient

Obtains the pool entry.

Returns
  • the pool entry, or null if detached