class ManagedNHttpClientConnectionImpl extends org.apache.http.impl.nio.DefaultNHttpClientConnection implements ManagedNHttpClientConnection
| Modifier and Type | Field and Description |
|---|---|
private org.apache.commons.logging.Log |
headerlog |
private java.lang.String |
id |
private org.apache.commons.logging.Log |
log |
private org.apache.http.nio.reactor.IOSession |
original |
private org.apache.commons.logging.Log |
wirelog |
requestWriter, responseParserconnMetrics, contentDecoder, contentEncoder, context, hasBufferedInput, hasBufferedOutput, inbuf, incomingContentStrategy, inTransportMetrics, outbuf, outgoingContentStrategy, outTransportMetrics, remote, request, response, session, status| Constructor and Description |
|---|
ManagedNHttpClientConnectionImpl(java.lang.String id,
org.apache.commons.logging.Log log,
org.apache.commons.logging.Log headerlog,
org.apache.commons.logging.Log wirelog,
org.apache.http.nio.reactor.IOSession iosession,
int buffersize,
int fragmentSizeHint,
org.apache.http.nio.util.ByteBufferAllocator allocator,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy,
org.apache.http.nio.NHttpMessageWriterFactory<org.apache.http.HttpRequest> requestWriterFactory,
org.apache.http.nio.NHttpMessageParserFactory<org.apache.http.HttpResponse> responseParserFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.http.nio.reactor.IOSession iosession)
Binds connection to the given I/O session.
|
java.lang.String |
getId()
Returns connection ID which is expected to be unique
for the life span of the connection manager.
|
org.apache.http.nio.reactor.IOSession |
getIOSession()
Returns the underlying I/O session.
|
javax.net.ssl.SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
protected void |
onRequestSubmitted(org.apache.http.HttpRequest request) |
protected void |
onResponseReceived(org.apache.http.HttpResponse response) |
java.lang.String |
toString() |
consumeInput, consumeInput, createRequestWriter, createResponseParser, isRequestSubmitted, produceOutput, produceOutput, resetInput, resetOutput, submitRequestassertNotClosed, close, createConnectionMetrics, createContentDecoder, createContentEncoder, createIncomingContentStrategy, createOutgoingContentStrategy, createTransportMetrics, getContext, getHttpRequest, getHttpResponse, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, getStatus, hasBufferedInput, hasBufferedOutput, isOpen, isStale, prepareDecoder, prepareEncoder, requestInput, requestOutput, setSocketTimeout, shutdown, suspendInput, suspendOutputclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisRequestSubmitted, resetInput, resetOutput, submitRequestgetContext, getHttpRequest, getHttpResponse, getStatusclose, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownprivate final org.apache.commons.logging.Log headerlog
private final org.apache.commons.logging.Log wirelog
private final org.apache.commons.logging.Log log
private final java.lang.String id
private org.apache.http.nio.reactor.IOSession original
public ManagedNHttpClientConnectionImpl(java.lang.String id,
org.apache.commons.logging.Log log,
org.apache.commons.logging.Log headerlog,
org.apache.commons.logging.Log wirelog,
org.apache.http.nio.reactor.IOSession iosession,
int buffersize,
int fragmentSizeHint,
org.apache.http.nio.util.ByteBufferAllocator allocator,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy,
org.apache.http.nio.NHttpMessageWriterFactory<org.apache.http.HttpRequest> requestWriterFactory,
org.apache.http.nio.NHttpMessageParserFactory<org.apache.http.HttpResponse> responseParserFactory)
public void bind(org.apache.http.nio.reactor.IOSession iosession)
ManagedNHttpClientConnectionbind in interface ManagedNHttpClientConnectionbind in class org.apache.http.impl.nio.NHttpConnectionBasepublic org.apache.http.nio.reactor.IOSession getIOSession()
ManagedNHttpClientConnectiongetIOSession in interface ManagedNHttpClientConnectionpublic javax.net.ssl.SSLSession getSSLSession()
ManagedNHttpClientConnectiongetSSLSession in interface ManagedNHttpClientConnectionnull otherwisepublic java.lang.String getId()
ManagedNHttpClientConnectiongetId in interface ManagedNHttpClientConnectionprotected void onResponseReceived(org.apache.http.HttpResponse response)
onResponseReceived in class org.apache.http.impl.nio.DefaultNHttpClientConnectionprotected void onRequestSubmitted(org.apache.http.HttpRequest request)
onRequestSubmitted in class org.apache.http.impl.nio.DefaultNHttpClientConnectionpublic java.lang.String toString()
toString in class org.apache.http.impl.nio.NHttpConnectionBase