Methods Summary |
---|
protected final void | assertAttached()Asserts that this adapter is still attached.
if (poolEntry == null) {
throw new IllegalStateException("Adapter is detached.");
}
|
public void | close()
if (poolEntry != null)
poolEntry.shutdownEntry();
OperatedClientConnection conn = getWrappedConnection();
if (conn != null) {
conn.close();
}
|
protected void | detach()Detaches this adapter from the wrapped connection.
This adapter becomes useless.
super.detach();
poolEntry = null;
|
public org.apache.http.conn.routing.HttpRoute | getRoute()
assertAttached();
return (poolEntry.tracker == null) ?
null : poolEntry.tracker.toRoute();
|
public java.lang.Object | getState()
assertAttached();
return poolEntry.getState();
|
public void | layerProtocol(org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params)
assertAttached();
poolEntry.layerProtocol(context, params);
|
public void | open(org.apache.http.conn.routing.HttpRoute route, org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params)
assertAttached();
poolEntry.open(route, context, params);
|
public void | setState(java.lang.Object state)
assertAttached();
poolEntry.setState(state);
|
public void | shutdown()
if (poolEntry != null)
poolEntry.shutdownEntry();
OperatedClientConnection conn = getWrappedConnection();
if (conn != null) {
conn.shutdown();
}
|
public void | tunnelProxy(org.apache.http.HttpHost next, boolean secure, org.apache.http.params.HttpParams params)
assertAttached();
poolEntry.tunnelProxy(next, secure, params);
|
public void | tunnelTarget(boolean secure, org.apache.http.params.HttpParams params)
assertAttached();
poolEntry.tunnelTarget(secure, params);
|