public class LoggingNHttpClientConnection extends org.apache.http.impl.nio.DefaultNHttpClientConnection implements UpgradableNHttpConnection
requestWriter, responseParserconnMetrics, 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, resetOutputassertNotClosed, 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, suspendOutputclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getHttpRequest, getHttpResponse, getStatuspublic 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.Closeableclose in interface java.lang.AutoCloseableclose in interface org.apache.http.HttpConnectionclose in class org.apache.http.impl.nio.NHttpConnectionBasejava.io.IOExceptionpublic void shutdown()
throws java.io.IOException
shutdown in interface org.apache.http.HttpConnectionshutdown in interface org.apache.http.nio.IOControlshutdown in class org.apache.http.impl.nio.NHttpConnectionBasejava.io.IOExceptionpublic void submitRequest(org.apache.http.HttpRequest request)
throws java.io.IOException,
org.apache.http.HttpException
submitRequest in interface org.apache.http.nio.NHttpClientConnectionsubmitRequest in class org.apache.http.impl.nio.DefaultNHttpClientConnectionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic void consumeInput(org.apache.http.nio.NHttpClientEventHandler handler)
consumeInput in class org.apache.http.impl.nio.DefaultNHttpClientConnectionpublic void produceOutput(org.apache.http.nio.NHttpClientEventHandler handler)
produceOutput in class org.apache.http.impl.nio.DefaultNHttpClientConnectionprotected 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.DefaultNHttpClientConnectionprotected 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.DefaultNHttpClientConnectionpublic org.apache.http.nio.reactor.IOSession getIOSession()
getIOSession in interface UpgradableNHttpConnectionpublic void bind(org.apache.http.nio.reactor.IOSession session)
bind in interface UpgradableNHttpConnectionbind in class org.apache.http.impl.nio.NHttpConnectionBasepublic java.lang.String toString()
toString in class org.apache.http.impl.nio.NHttpConnectionBasepublic boolean isReleaseConn()
public void setReleaseConn(boolean releaseConn)
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.