public 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 and Description |
---|---|
void |
bind(Socket socket)
Binds this connection to the given socket.
|
String |
getId()
Returns connection ID which is expected to be unique
for the life span of the connection manager.
|
Socket |
getSocket()
Returns the underlying socket.
|
SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader
String getId()
void bind(Socket socket) throws IOException
socket
- the socket to bind the connection to.IOException
Socket getSocket()
SSLSession getSSLSession()
SSLSocket
, the SSL session of
that socket is obtained. This is a potentially blocking operation.null
otherwiseCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.