Top Description Methods
org.apache.http.conn

public Interface HttpRoutedConnection

extends HttpInetConnection
Known Direct Subinterfaces
org.apache.http.conn.ManagedClientConnection
Annotations
@Deprecated
Imports
javax.net.ssl.SSLSession, org.apache.http.HttpInetConnection, org.apache.http.conn.routing.HttpRoute

Deprecated

(4.3) replaced by HttpClientConnectionManager.

Interface to access routing information of a client side connection.
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public HttpRoute

Returns:

the route established so far, or null if not connected
getRoute
()

Obtains the current route of this connection.

public SSLSession

Returns:

the underlying SSL session if available, null otherwise
getSSLSession
()

Obtains the SSL session of the underlying connection, if any.

public boolean

Returns:

true if this connection is secure, false otherwise
isSecure
()

Indicates whether this connection is secure.

Inherited from org.apache.http.HttpInetConnection:
getLocalAddressgetLocalPortgetRemoteAddressgetRemotePort

Method Detail

getRouteback to summary
public HttpRoute getRoute()

Obtains the current route of this connection.

Returns:HttpRoute

the route established so far, or null if not connected

getSSLSessionback to summary
public SSLSession getSSLSession()

Obtains the SSL session of the underlying connection, if any. If this connection is open, and the underlying socket is an SSLSocket, 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 via isSecure. 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:SSLSession

the underlying SSL session if available, null otherwise

isSecureback to summary
public boolean isSecure()

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:boolean

true if this connection is secure, false otherwise