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, responseParser
connMetrics, 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, submitRequest
assertNotClosed, 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, suspendOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isRequestSubmitted, resetInput, resetOutput, submitRequest
getContext, getHttpRequest, getHttpResponse, getStatus
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
private 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)
ManagedNHttpClientConnection
bind
in interface ManagedNHttpClientConnection
bind
in class org.apache.http.impl.nio.NHttpConnectionBase
public org.apache.http.nio.reactor.IOSession getIOSession()
ManagedNHttpClientConnection
getIOSession
in interface ManagedNHttpClientConnection
public javax.net.ssl.SSLSession getSSLSession()
ManagedNHttpClientConnection
getSSLSession
in interface ManagedNHttpClientConnection
null
otherwisepublic java.lang.String getId()
ManagedNHttpClientConnection
getId
in interface ManagedNHttpClientConnection
protected void onResponseReceived(org.apache.http.HttpResponse response)
onResponseReceived
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
protected void onRequestSubmitted(org.apache.http.HttpRequest request)
onRequestSubmitted
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
public java.lang.String toString()
toString
in class org.apache.http.impl.nio.NHttpConnectionBase