class CPoolProxy extends java.lang.Object implements ManagedNHttpClientConnection
| Modifier and Type | Field and Description |
|---|---|
private CPoolEntry |
poolEntry |
| Constructor and Description |
|---|
CPoolProxy(CPoolEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.http.nio.reactor.IOSession iosession)
Binds connection to the given I/O session.
|
void |
close() |
(package private) CPoolEntry |
detach() |
static CPoolEntry |
detach(org.apache.http.nio.NHttpClientConnection proxy) |
(package private) ManagedNHttpClientConnection |
getConnection() |
org.apache.http.protocol.HttpContext |
getContext() |
org.apache.http.HttpRequest |
getHttpRequest() |
org.apache.http.HttpResponse |
getHttpResponse() |
java.lang.String |
getId()
Returns connection ID which is expected to be unique
for the life span of the connection manager.
|
org.apache.http.nio.reactor.IOSession |
getIOSession()
Returns the underlying I/O session.
|
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
org.apache.http.HttpConnectionMetrics |
getMetrics() |
(package private) CPoolEntry |
getPoolEntry() |
static CPoolEntry |
getPoolEntry(org.apache.http.nio.NHttpClientConnection proxy) |
private static CPoolProxy |
getProxy(org.apache.http.nio.NHttpClientConnection conn) |
java.net.InetAddress |
getRemoteAddress() |
int |
getRemotePort() |
int |
getSocketTimeout() |
javax.net.ssl.SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
int |
getStatus() |
(package private) ManagedNHttpClientConnection |
getValidConnection() |
boolean |
isOpen() |
boolean |
isRequestSubmitted() |
boolean |
isStale() |
static org.apache.http.nio.NHttpClientConnection |
newProxy(CPoolEntry poolEntry) |
void |
requestInput() |
void |
requestOutput() |
void |
resetInput() |
void |
resetOutput() |
void |
setSocketTimeout(int i) |
void |
shutdown() |
void |
submitRequest(org.apache.http.HttpRequest request) |
void |
suspendInput() |
void |
suspendOutput() |
java.lang.String |
toString() |
private volatile CPoolEntry poolEntry
CPoolProxy(CPoolEntry entry)
CPoolEntry getPoolEntry()
CPoolEntry detach()
ManagedNHttpClientConnection getConnection()
ManagedNHttpClientConnection getValidConnection()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface org.apache.http.HttpConnectionjava.io.IOExceptionpublic void shutdown()
throws java.io.IOException
shutdown in interface org.apache.http.HttpConnectionshutdown in interface org.apache.http.nio.IOControljava.io.IOExceptionpublic org.apache.http.HttpConnectionMetrics getMetrics()
getMetrics in interface org.apache.http.HttpConnectionpublic void requestInput()
requestInput in interface org.apache.http.nio.IOControlpublic void suspendInput()
suspendInput in interface org.apache.http.nio.IOControlpublic void requestOutput()
requestOutput in interface org.apache.http.nio.IOControlpublic void suspendOutput()
suspendOutput in interface org.apache.http.nio.IOControlpublic java.net.InetAddress getLocalAddress()
getLocalAddress in interface org.apache.http.HttpInetConnectionpublic int getLocalPort()
getLocalPort in interface org.apache.http.HttpInetConnectionpublic java.net.InetAddress getRemoteAddress()
getRemoteAddress in interface org.apache.http.HttpInetConnectionpublic int getRemotePort()
getRemotePort in interface org.apache.http.HttpInetConnectionpublic boolean isOpen()
isOpen in interface org.apache.http.HttpConnectionpublic boolean isStale()
isStale in interface org.apache.http.HttpConnectionpublic void setSocketTimeout(int i)
setSocketTimeout in interface org.apache.http.HttpConnectionpublic int getSocketTimeout()
getSocketTimeout in interface org.apache.http.HttpConnectionpublic void submitRequest(org.apache.http.HttpRequest request)
throws java.io.IOException,
org.apache.http.HttpException
submitRequest in interface org.apache.http.nio.NHttpClientConnectionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic boolean isRequestSubmitted()
isRequestSubmitted in interface org.apache.http.nio.NHttpClientConnectionpublic void resetOutput()
resetOutput in interface org.apache.http.nio.NHttpClientConnectionpublic void resetInput()
resetInput in interface org.apache.http.nio.NHttpClientConnectionpublic int getStatus()
getStatus in interface org.apache.http.nio.NHttpConnectionpublic org.apache.http.HttpRequest getHttpRequest()
getHttpRequest in interface org.apache.http.nio.NHttpConnectionpublic org.apache.http.HttpResponse getHttpResponse()
getHttpResponse in interface org.apache.http.nio.NHttpConnectionpublic org.apache.http.protocol.HttpContext getContext()
getContext in interface org.apache.http.nio.NHttpConnectionpublic static org.apache.http.nio.NHttpClientConnection newProxy(CPoolEntry poolEntry)
private static CPoolProxy getProxy(org.apache.http.nio.NHttpClientConnection conn)
public static CPoolEntry getPoolEntry(org.apache.http.nio.NHttpClientConnection proxy)
public static CPoolEntry detach(org.apache.http.nio.NHttpClientConnection proxy)
public java.lang.String getId()
ManagedNHttpClientConnectiongetId in interface ManagedNHttpClientConnectionpublic void bind(org.apache.http.nio.reactor.IOSession iosession)
ManagedNHttpClientConnectionbind in interface ManagedNHttpClientConnectionpublic org.apache.http.nio.reactor.IOSession getIOSession()
ManagedNHttpClientConnectiongetIOSession in interface ManagedNHttpClientConnectionpublic javax.net.ssl.SSLSession getSSLSession()
ManagedNHttpClientConnectiongetSSLSession in interface ManagedNHttpClientConnectionnull otherwisepublic java.lang.String toString()
toString in class java.lang.Object