Class AbstractClientConnAdapter

java.lang.Object
org.apache.http.impl.conn.AbstractClientConnAdapter
All Implemented Interfaces:
ConnectionReleaseTrigger, ManagedClientConnection, HttpClientConnection, HttpConnection, HttpInetConnection
Direct Known Subclasses:
AbstractPooledConnAdapter

public abstract class AbstractClientConnAdapter
extends Object
implements ManagedClientConnection
Abstract adapter from operated to managed client connections. Read and write methods are delegated to the wrapped connection. Operations affecting the connection state have to be implemented by derived classes. Operations for querying the connection state are delegated to the wrapped connection if there is one, or return a default value if there is none.
This adapter tracks the checkpoints for reusable communication states, as indicated by markReusable and queried by isMarkedReusable. All send and receive operations will automatically clear the mark.
Connection release calls are delegated to the connection manager, if there is one. abortConnection will clear the reusability mark first. The connection manager is expected to tolerate multiple calls to the release method.
Since:
4.0
Version:
$Revision: 672969 $ $Date: 2008-06-30 18:09:50 -0700 (Mon, 30 Jun 2008) $
Author:
Roland Weber