@Internal
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 |
activate()
Restores the connection from idle mode.
|
void |
bind(Socket socket)
Binds this connection to the given socket.
|
default void |
bind(SSLSocket sslSocket,
Socket socket)
Binds this connection to the SSL given socket and the underlying network
socket.
|
Socket |
getSocket()
Returns the underlying socket.
|
SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
void |
passivate()
Puts the connection into idle mode.
|
isConsistent, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader, terminateRequest
flush, isDataAvailable, isStale
close, getEndpointDetails, getLocalAddress, getProtocolVersion, getRemoteAddress, isOpen
void bind(Socket socket) throws IOException
socket
- the socket to bind the connection to.IOException
default void bind(SSLSocket sslSocket, Socket socket) throws IOException
sslSocket
- the SSL socket to bind the connection to.socket
- the underlying network socket of the SSL socket.IOException
Socket 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.HttpConnection
null
otherwisevoid passivate()
void activate()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.