|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedHttpClientConnection
Represents a managed connection whose state and life cycle is managed by
a connection manager. This interface extends HttpClientConnection
with methods to bind the connection to an arbitrary socket and
to obtain SSL session details.
| Method Summary | |
|---|---|
void |
bind(Socket socket)
Binds this connection to the given socket. |
String |
getId()
Returns connection ID which is expected to be unique for the life span of the connection manager. |
Socket |
getSocket()
Returns the underlying socket. |
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.HttpInetConnection |
|---|
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort |
| Methods inherited from interface org.apache.http.HttpConnection |
|---|
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown |
| Method Detail |
|---|
String getId()
void bind(Socket socket)
throws IOException
socket - the socket to bind the connection to.
IOExceptionSocket getSocket()
SSLSession getSSLSession()
SSLSocket, the SSL session of
that socket is obtained. This is a potentially blocking operation.
null otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||