HttpClientConnectionManager取代。
@Deprecated public interface HttpRoutedConnection extends HttpInetConnection
| Modifier and Type | Method and Description |
|---|---|
HttpRoute |
getRoute()
已过时。
获取此连接的当前路由。
|
SSLSession |
getSSLSession()
已过时。
获取底层连接的SSL会话(如果有)。
|
boolean |
isSecure()
已过时。
指示此连接是否安全。
|
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePortclose, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownboolean isSecure()
true如果这个连接是安全的,
false否则
HttpRoute getRoute()
null如果没有连接
SSLSession getSSLSession()
SSLSocket ,则会获取该套接字的SSL会话。
这是一个潜在的阻塞操作。
注意:底层套接字是否为SSL套接字不一定可以通过isSecure()确定。 普通插座可能被认为是安全的,例如,如果它们连接到同一网段中的已知主机。 另一方面,SSL套接字可能被认为是不安全的,例如根据所选择的加密套件。
null否则
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.