public interface ManagedHttpClientConnection extends HttpClientConnection, HttpInetConnection
HttpClientConnection ,其方法是将连接绑定到任意套接字并获取SSL会话详细信息。
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Socket socket)
将此连接绑定到给定的套接字。
|
String |
getId()
返回连接管理器的使用寿命期望为唯一的连接ID。
|
Socket |
getSocket()
返回底层socket。
|
SSLSession |
getSSLSession()
获取底层连接的SSL会话(如果有)。
|
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeadergetLocalAddress, getLocalPort, getRemoteAddress, getRemotePortclose, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownString getId()
void bind(Socket socket) throws IOException
socket - 将连接绑定到的套接字。
IOException
Socket getSocket()
SSLSession getSSLSession()
null否则
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.