public interface ManagedHttpClientConnection
extends org.apache.hc.core5.http.io.HttpClientConnection
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.
|
Socket |
getSocket()
Returns the underlying socket.
|
SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
isConsistent, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader, terminateRequestflush, isDataAvailable, isStalevoid bind(Socket socket) throws IOException
socket - the socket to bind the connection to.IOExceptionSocket getSocket()
SSLSession getSSLSession()
SSLSocket, the SSL session of
that socket is obtained. This is a potentially blocking operation.getSSLSession in interface org.apache.hc.core5.http.HttpConnectionnull otherwiseCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.