Interface HttpRoutedConnection
- All Superinterfaces:
AutoCloseable, Closeable, HttpConnection, HttpInetConnection
- All Known Subinterfaces:
ManagedClientConnection
Deprecated.
Interface to access routing information of a client side connection.
- Since:
- 4.1
-
Method Summary
Methods inherited from interface HttpConnection
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownMethods inherited from interface HttpInetConnection
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
-
Method Details
-
isSecure
boolean isSecure()Deprecated.Indicates whether this connection is secure. The return value is well-defined only while the connection is open. It may change even while the connection is open.- Returns:
trueif this connection is secure,falseotherwise
-
getRoute
HttpRoute getRoute()Deprecated.Obtains the current route of this connection.- Returns:
- the route established so far, or
nullif not connected
-
getSSLSession
SSLSession getSSLSession()Deprecated.Obtains the SSL session of the underlying connection, if any. If this connection is open, and the underlying socket is anSSLSocket, the SSL session of that socket is obtained. This is a potentially blocking operation.
Note: Whether the underlying socket is an SSL socket can not necessarily be determined viaisSecure(). Plain sockets may be considered secure, for example if they are connected to a known host in the same network segment. On the other hand, SSL sockets may be considered insecure, for example depending on the chosen cipher suite.- Returns:
- the underlying SSL session if available,
nullotherwise
-
HttpClientConnectionManager.