java.lang.AutoCloseable, java.io.Closeable, org.apache.http.HttpClientConnection, org.apache.http.HttpConnection, org.apache.http.HttpInetConnectionManagedClientConnectionAbstractClientConnAdapter, AbstractPooledConnAdapter, BasicPooledConnAdapter, DefaultClientConnection, DefaultManagedHttpClientConnection, SingleClientConnManager.ConnAdapterpublic interface ManagedHttpClientConnection
extends org.apache.http.HttpClientConnection, org.apache.http.HttpInetConnection
HttpClientConnection
with methods to bind the connection to an arbitrary socket and
to obtain SSL session details.| Modifier and Type | Method | Description |
|---|---|---|
void |
bind(java.net.Socket socket) |
Binds this connection to the given socket.
|
java.lang.String |
getId() |
Returns connection ID which is expected to be unique
for the life span of the connection manager.
|
java.net.Socket |
getSocket() |
Returns the underlying socket.
|
javax.net.ssl.SSLSession |
getSSLSession() |
Obtains the SSL session of the underlying connection, if any.
|
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderjava.lang.String getId()
void bind(java.net.Socket socket) throws java.io.IOException
socket - the socket to bind the connection to.java.io.IOExceptionjava.net.Socket getSocket()
javax.net.ssl.SSLSession getSSLSession()
SSLSocket, the SSL session of
that socket is obtained. This is a potentially blocking operation.null otherwise