org.apache.http.conn
Interface ManagedHttpClientConnection

All Superinterfaces:
Closeable, HttpClientConnection, HttpConnection, HttpInetConnection
All Known Subinterfaces:
ManagedClientConnection
All Known Implementing Classes:
AbstractClientConnAdapter, AbstractPooledConnAdapter, BasicPooledConnAdapter, DefaultClientConnection, SingleClientConnManager.ConnAdapter

public interface ManagedHttpClientConnection
extends HttpClientConnection, HttpInetConnection

Extended interface that exposes Socket bind method and SSL session details.

Since:
4.3

Method Summary
 void bind(Socket socket)
           
 String getId()
           
 Socket getSocket()
           
 SSLSession getSSLSession()
          Obtains the SSL session of the underlying connection, if any.
 
Methods inherited from interface org.apache.http.HttpClientConnection
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader
 
Methods inherited from interface org.apache.http.HttpConnection
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
 
Methods inherited from interface org.apache.http.HttpInetConnection
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
 
Methods inherited from interface org.apache.http.HttpConnection
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
 

Method Detail

getId

String getId()

bind

void bind(Socket socket)
          throws IOException
Throws:
IOException

getSocket

Socket getSocket()

getSSLSession

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.

Returns:
the underlying SSL session if available, null otherwise


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.