org.apache.http.nio.conn
Interface ManagedClientConnection

All Superinterfaces:
ConnectionReleaseTrigger, HttpConnection, org.apache.http.nio.IOControl, org.apache.http.nio.NHttpClientConnection, org.apache.http.nio.NHttpConnection

public interface ManagedClientConnection
extends org.apache.http.nio.NHttpClientConnection, ConnectionReleaseTrigger


Field Summary
 
Fields inherited from interface org.apache.http.nio.NHttpConnection
ACTIVE, CLOSED, CLOSING
 
Method Summary
 HttpRoute getRoute()
           
 Object getState()
           
 boolean isReusable()
           
 void layerProtocol(HttpContext context, HttpParams params)
           
 void markNonReusable()
           
 void markReusable()
           
 void open(HttpRoute route, HttpContext context, HttpParams params)
           
 void setIdleDuration(long duration, TimeUnit tunit)
           
 void setState(Object state)
           
 void tunnelProxy(HttpHost next, HttpParams params)
           
 void tunnelTarget(HttpParams params)
           
 
Methods inherited from interface org.apache.http.nio.NHttpClientConnection
isRequestSubmitted, resetInput, resetOutput, submitRequest
 
Methods inherited from interface org.apache.http.nio.NHttpConnection
getContext, getHttpRequest, getHttpResponse, getStatus
 
Methods inherited from interface org.apache.http.HttpConnection
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
 
Methods inherited from interface org.apache.http.nio.IOControl
requestInput, requestOutput, shutdown, suspendInput, suspendOutput
 
Methods inherited from interface org.apache.http.conn.ConnectionReleaseTrigger
abortConnection, releaseConnection
 

Method Detail

getRoute

HttpRoute getRoute()

getState

Object getState()

setState

void setState(Object state)

markReusable

void markReusable()

markNonReusable

void markNonReusable()

isReusable

boolean isReusable()

open

void open(HttpRoute route,
          HttpContext context,
          HttpParams params)
          throws IOException
Throws:
IOException

tunnelTarget

void tunnelTarget(HttpParams params)
                  throws IOException
Throws:
IOException

tunnelProxy

void tunnelProxy(HttpHost next,
                 HttpParams params)
                 throws IOException
Throws:
IOException

layerProtocol

void layerProtocol(HttpContext context,
                   HttpParams params)
                   throws IOException
Throws:
IOException

setIdleDuration

void setIdleDuration(long duration,
                     TimeUnit tunit)


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.