Class CPoolProxy
java.lang.Object
org.apache.http.impl.nio.conn.CPoolProxy
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.http.HttpConnection, org.apache.http.HttpInetConnection, ManagedNHttpClientConnection, org.apache.http.nio.IOControl, org.apache.http.nio.NHttpClientConnection, org.apache.http.nio.NHttpConnection
-
Field Summary
FieldsFields inherited from interface org.apache.http.nio.NHttpConnection
ACTIVE, CLOSED, CLOSING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(org.apache.http.nio.reactor.IOSession iosession) Binds connection to the given I/O session.voidclose()(package private) CPoolEntrydetach()static CPoolEntrydetach(org.apache.http.nio.NHttpClientConnection proxy) (package private) ManagedNHttpClientConnectionorg.apache.http.protocol.HttpContextorg.apache.http.HttpRequestorg.apache.http.HttpResponsegetId()Returns connection ID which is expected to be unique for the life span of the connection manager.org.apache.http.nio.reactor.IOSessionReturns the underlying I/O session.intorg.apache.http.HttpConnectionMetrics(package private) CPoolEntrystatic CPoolEntrygetPoolEntry(org.apache.http.nio.NHttpClientConnection proxy) private static CPoolProxygetProxy(org.apache.http.nio.NHttpClientConnection conn) intintObtains the SSL session of the underlying connection, if any.int(package private) ManagedNHttpClientConnectionbooleanisOpen()booleanbooleanisStale()static org.apache.http.nio.NHttpClientConnectionnewProxy(CPoolEntry poolEntry) voidvoidvoidvoidvoidsetSocketTimeout(int i) voidshutdown()voidsubmitRequest(org.apache.http.HttpRequest request) voidvoidtoString()
-
Field Details
-
poolEntry
-
-
Constructor Details
-
CPoolProxy
CPoolProxy(CPoolEntry entry)
-
-
Method Details
-
getPoolEntry
CPoolEntry getPoolEntry() -
detach
CPoolEntry detach() -
getConnection
ManagedNHttpClientConnection getConnection() -
getValidConnection
ManagedNHttpClientConnection getValidConnection() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.http.HttpConnection- Throws:
IOException
-
shutdown
- Specified by:
shutdownin interfaceorg.apache.http.HttpConnection- Specified by:
shutdownin interfaceorg.apache.http.nio.IOControl- Throws:
IOException
-
getMetrics
public org.apache.http.HttpConnectionMetrics getMetrics()- Specified by:
getMetricsin interfaceorg.apache.http.HttpConnection
-
requestInput
public void requestInput()- Specified by:
requestInputin interfaceorg.apache.http.nio.IOControl
-
suspendInput
public void suspendInput()- Specified by:
suspendInputin interfaceorg.apache.http.nio.IOControl
-
requestOutput
public void requestOutput()- Specified by:
requestOutputin interfaceorg.apache.http.nio.IOControl
-
suspendOutput
public void suspendOutput()- Specified by:
suspendOutputin interfaceorg.apache.http.nio.IOControl
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.apache.http.HttpInetConnection
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPortin interfaceorg.apache.http.HttpInetConnection
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.apache.http.HttpInetConnection
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePortin interfaceorg.apache.http.HttpInetConnection
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.apache.http.HttpConnection
-
isStale
public boolean isStale()- Specified by:
isStalein interfaceorg.apache.http.HttpConnection
-
setSocketTimeout
public void setSocketTimeout(int i) - Specified by:
setSocketTimeoutin interfaceorg.apache.http.HttpConnection
-
getSocketTimeout
public int getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceorg.apache.http.HttpConnection
-
submitRequest
public void submitRequest(org.apache.http.HttpRequest request) throws IOException, org.apache.http.HttpException - Specified by:
submitRequestin interfaceorg.apache.http.nio.NHttpClientConnection- Throws:
IOExceptionorg.apache.http.HttpException
-
isRequestSubmitted
public boolean isRequestSubmitted()- Specified by:
isRequestSubmittedin interfaceorg.apache.http.nio.NHttpClientConnection
-
resetOutput
public void resetOutput()- Specified by:
resetOutputin interfaceorg.apache.http.nio.NHttpClientConnection
-
resetInput
public void resetInput()- Specified by:
resetInputin interfaceorg.apache.http.nio.NHttpClientConnection
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceorg.apache.http.nio.NHttpConnection
-
getHttpRequest
public org.apache.http.HttpRequest getHttpRequest()- Specified by:
getHttpRequestin interfaceorg.apache.http.nio.NHttpConnection
-
getHttpResponse
public org.apache.http.HttpResponse getHttpResponse()- Specified by:
getHttpResponsein interfaceorg.apache.http.nio.NHttpConnection
-
getContext
public org.apache.http.protocol.HttpContext getContext()- Specified by:
getContextin interfaceorg.apache.http.nio.NHttpConnection
-
newProxy
-
getProxy
-
getPoolEntry
-
detach
-
getId
Description copied from interface:ManagedNHttpClientConnectionReturns connection ID which is expected to be unique for the life span of the connection manager.- Specified by:
getIdin interfaceManagedNHttpClientConnection
-
bind
public void bind(org.apache.http.nio.reactor.IOSession iosession) Description copied from interface:ManagedNHttpClientConnectionBinds connection to the given I/O session.- Specified by:
bindin interfaceManagedNHttpClientConnection
-
getIOSession
public org.apache.http.nio.reactor.IOSession getIOSession()Description copied from interface:ManagedNHttpClientConnectionReturns the underlying I/O session.- Specified by:
getIOSessionin interfaceManagedNHttpClientConnection
-
getSSLSession
Description copied from interface:ManagedNHttpClientConnectionObtains the SSL session of the underlying connection, if any.- Specified by:
getSSLSessionin interfaceManagedNHttpClientConnection- Returns:
- the underlying SSL session if available,
nullotherwise
-
toString
-