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.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.http.HttpConnection
java.io.IOException
public void shutdown() throws java.io.IOException
shutdown
in interface org.apache.http.HttpConnection
shutdown
in interface org.apache.http.nio.IOControl
java.io.IOException
public org.apache.http.HttpConnectionMetrics getMetrics()
getMetrics
in interface org.apache.http.HttpConnection
public void requestInput()
requestInput
in interface org.apache.http.nio.IOControl
public void suspendInput()
suspendInput
in interface org.apache.http.nio.IOControl
public void requestOutput()
requestOutput
in interface org.apache.http.nio.IOControl
public void suspendOutput()
suspendOutput
in interface org.apache.http.nio.IOControl
public java.net.InetAddress getLocalAddress()
getLocalAddress
in interface org.apache.http.HttpInetConnection
public int getLocalPort()
getLocalPort
in interface org.apache.http.HttpInetConnection
public java.net.InetAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.http.HttpInetConnection
public int getRemotePort()
getRemotePort
in interface org.apache.http.HttpInetConnection
public boolean isOpen()
isOpen
in interface org.apache.http.HttpConnection
public boolean isStale()
isStale
in interface org.apache.http.HttpConnection
public void setSocketTimeout(int i)
setSocketTimeout
in interface org.apache.http.HttpConnection
public int getSocketTimeout()
getSocketTimeout
in interface org.apache.http.HttpConnection
public void submitRequest(org.apache.http.HttpRequest request) throws java.io.IOException, org.apache.http.HttpException
submitRequest
in interface org.apache.http.nio.NHttpClientConnection
java.io.IOException
org.apache.http.HttpException
public boolean isRequestSubmitted()
isRequestSubmitted
in interface org.apache.http.nio.NHttpClientConnection
public void resetOutput()
resetOutput
in interface org.apache.http.nio.NHttpClientConnection
public void resetInput()
resetInput
in interface org.apache.http.nio.NHttpClientConnection
public int getStatus()
getStatus
in interface org.apache.http.nio.NHttpConnection
public org.apache.http.HttpRequest getHttpRequest()
getHttpRequest
in interface org.apache.http.nio.NHttpConnection
public org.apache.http.HttpResponse getHttpResponse()
getHttpResponse
in interface org.apache.http.nio.NHttpConnection
public org.apache.http.protocol.HttpContext getContext()
getContext
in interface org.apache.http.nio.NHttpConnection
public 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()
ManagedNHttpClientConnection
getId
in interface ManagedNHttpClientConnection
public void bind(org.apache.http.nio.reactor.IOSession iosession)
ManagedNHttpClientConnection
bind
in interface ManagedNHttpClientConnection
public org.apache.http.nio.reactor.IOSession getIOSession()
ManagedNHttpClientConnection
getIOSession
in interface ManagedNHttpClientConnection
public javax.net.ssl.SSLSession getSSLSession()
ManagedNHttpClientConnection
getSSLSession
in interface ManagedNHttpClientConnection
null
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object