public class DefaultManagedHttpClientConnection extends DefaultBHttpClientConnection implements ManagedHttpClientConnection
ManagedHttpClientConnection implementation.| Constructor and Description |
|---|
DefaultManagedHttpClientConnection(java.lang.String id,
int buffersize) |
DefaultManagedHttpClientConnection(java.lang.String id,
int buffersize,
int fragmentSizeHint,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
MessageConstraints constraints,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy,
<any> requestWriterFactory,
<any> responseParserFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.net.Socket socket)
Binds this connection to the given socket.
|
java.lang.Object |
getAttribute(java.lang.String id) |
java.lang.String |
getId()
Returns connection ID which is expected to be unique
for the life span of the connection manager.
|
java.net.Socket |
getSocket()
Returns the underlying socket.
|
javax.net.ssl.SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
java.lang.Object |
removeAttribute(java.lang.String id) |
void |
setAttribute(java.lang.String id,
java.lang.Object obj) |
void |
shutdown() |
public DefaultManagedHttpClientConnection(java.lang.String id,
int buffersize,
int fragmentSizeHint,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
MessageConstraints constraints,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy,
<any> requestWriterFactory,
<any> responseParserFactory)
public DefaultManagedHttpClientConnection(java.lang.String id,
int buffersize)
public java.lang.String getId()
ManagedHttpClientConnectiongetId in interface ManagedHttpClientConnectionpublic void shutdown()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object getAttribute(java.lang.String id)
public java.lang.Object removeAttribute(java.lang.String id)
public void setAttribute(java.lang.String id,
java.lang.Object obj)
public void bind(java.net.Socket socket)
throws java.io.IOException
ManagedHttpClientConnectionbind in interface ManagedHttpClientConnectionsocket - the socket to bind the connection to.java.io.IOExceptionpublic java.net.Socket getSocket()
ManagedHttpClientConnectiongetSocket in interface ManagedHttpClientConnectionpublic javax.net.ssl.SSLSession getSSLSession()
ManagedHttpClientConnectionSSLSocket, the SSL session of
that socket is obtained. This is a potentially blocking operation.getSSLSession in interface ManagedHttpClientConnectionnull otherwise