Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

AbstractPooledConnAdapter

extends AbstractClientConnAdapter
java.lang.Object
   ↳ org.apache.http.impl.conn.AbstractClientConnAdapter
     ↳ org.apache.http.impl.conn.AbstractPooledConnAdapter
Known Direct Subclasses

Class Overview

Abstract adapter from pool entries to managed client connections. The connection in the pool entry is used to initialize the base class. In addition, methods to establish a route are delegated to the pool entry. shutdown and close will clear the tracked route in the pool entry and call the respective method of the wrapped connection.

Summary

Fields
protected AbstractPoolEntry poolEntry The wrapped pool entry.
Protected Constructors
AbstractPooledConnAdapter ( ClientConnectionManager manager, AbstractPoolEntry entry)
Creates a new connection adapter.
Public Methods
void close ()
HttpRoute getRoute ()
Object getState ()
void layerProtocol ( HttpContext context, HttpParams params)
void open ( HttpRoute route, HttpContext context, HttpParams params)
void setState ( Object state)
void shutdown ()
void tunnelProxy ( HttpHost next, boolean secure, HttpParams params)
void tunnelTarget (boolean secure, HttpParams params)
Protected Methods
final void assertAttached ()
Asserts that this adapter is still attached.
void detach ()
Detaches this adapter from the wrapped connection.
[Expand]
Inherited Methods
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.ManagedClientConnection

Fields

protected AbstractPoolEntry poolEntry

Added in API level 1

The wrapped pool entry.

Protected Constructors

protected AbstractPooledConnAdapter ( ClientConnectionManager manager, AbstractPoolEntry entry)

Added in API level 1

Creates a new connection adapter.

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

Public Methods

public void close ()

Added in API level 1

public HttpRoute getRoute ()

Added in API level 1

public Object getState ()

Added in API level 1

public void layerProtocol ( HttpContext context, HttpParams params)

Added in API level 1

public void open ( HttpRoute route, HttpContext context, HttpParams params)

Added in API level 1

public void setState ( Object state)

Added in API level 1

public void shutdown ()

Added in API level 1

public void tunnelProxy ( HttpHost next, boolean secure, HttpParams params)

Added in API level 1

public void tunnelTarget (boolean secure, HttpParams params)

Added in API level 1

Protected Methods

protected final void assertAttached ()

Added in API level 1

Asserts that this adapter is still attached.

protected void detach ()

Added in API level 1

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