public class LoggingNHttpClientConnection extends org.apache.http.impl.nio.DefaultNHttpClientConnection implements UpgradableNHttpConnection
requestWriter, responseParser
connMetrics, contentDecoder, contentEncoder, context, hasBufferedInput, hasBufferedOutput, inbuf, incomingContentStrategy, inTransportMetrics, outbuf, outgoingContentStrategy, outTransportMetrics, remote, request, response, session, status
Constructor and Description |
---|
LoggingNHttpClientConnection(org.apache.http.nio.reactor.IOSession session,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.nio.util.ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
Modifier and Type | Method and Description |
---|---|
void |
bind(org.apache.http.nio.reactor.IOSession session) |
void |
close() |
void |
consumeInput(org.apache.http.nio.NHttpClientEventHandler handler) |
protected org.apache.http.nio.NHttpMessageWriter<org.apache.http.HttpRequest> |
createRequestWriter(org.apache.http.nio.reactor.SessionOutputBuffer buffer,
org.apache.http.params.HttpParams params) |
protected org.apache.http.nio.NHttpMessageParser<org.apache.http.HttpResponse> |
createResponseParser(org.apache.http.nio.reactor.SessionInputBuffer buffer,
org.apache.http.HttpResponseFactory responseFactory,
org.apache.http.params.HttpParams params) |
org.apache.http.nio.reactor.IOSession |
getIOSession() |
boolean |
isReleaseConn() |
void |
produceOutput(org.apache.http.nio.NHttpClientEventHandler handler) |
void |
setReleaseConn(boolean releaseConn) |
void |
shutdown() |
void |
submitRequest(org.apache.http.HttpRequest request) |
java.lang.String |
toString() |
consumeInput, isRequestSubmitted, onRequestSubmitted, onResponseReceived, produceOutput, resetInput, resetOutput
assertNotClosed, 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, suspendInput, suspendOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getHttpRequest, getHttpResponse, getStatus
public LoggingNHttpClientConnection(org.apache.http.nio.reactor.IOSession session, org.apache.http.HttpResponseFactory responseFactory, org.apache.http.nio.util.ByteBufferAllocator allocator, org.apache.http.params.HttpParams params)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.http.HttpConnection
close
in class org.apache.http.impl.nio.NHttpConnectionBase
java.io.IOException
public void shutdown() throws java.io.IOException
shutdown
in interface org.apache.http.HttpConnection
shutdown
in interface org.apache.http.nio.IOControl
shutdown
in class org.apache.http.impl.nio.NHttpConnectionBase
java.io.IOException
public void submitRequest(org.apache.http.HttpRequest request) throws java.io.IOException, org.apache.http.HttpException
submitRequest
in interface org.apache.http.nio.NHttpClientConnection
submitRequest
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
java.io.IOException
org.apache.http.HttpException
public void consumeInput(org.apache.http.nio.NHttpClientEventHandler handler)
consumeInput
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
public void produceOutput(org.apache.http.nio.NHttpClientEventHandler handler)
produceOutput
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
protected org.apache.http.nio.NHttpMessageWriter<org.apache.http.HttpRequest> createRequestWriter(org.apache.http.nio.reactor.SessionOutputBuffer buffer, org.apache.http.params.HttpParams params)
createRequestWriter
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
protected org.apache.http.nio.NHttpMessageParser<org.apache.http.HttpResponse> createResponseParser(org.apache.http.nio.reactor.SessionInputBuffer buffer, org.apache.http.HttpResponseFactory responseFactory, org.apache.http.params.HttpParams params)
createResponseParser
in class org.apache.http.impl.nio.DefaultNHttpClientConnection
public org.apache.http.nio.reactor.IOSession getIOSession()
getIOSession
in interface UpgradableNHttpConnection
public void bind(org.apache.http.nio.reactor.IOSession session)
bind
in interface UpgradableNHttpConnection
bind
in class org.apache.http.impl.nio.NHttpConnectionBase
public java.lang.String toString()
toString
in class org.apache.http.impl.nio.NHttpConnectionBase
public boolean isReleaseConn()
public void setReleaseConn(boolean releaseConn)
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.