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) |
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 IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.http.HttpConnectionclose in class org.apache.http.impl.nio.NHttpConnectionBaseIOExceptionpublic void shutdown()
throws IOException
shutdown in interface org.apache.http.HttpConnectionshutdown in interface org.apache.http.nio.IOControlshutdown in class org.apache.http.impl.nio.NHttpConnectionBaseIOExceptionpublic void submitRequest(org.apache.http.HttpRequest request)
throws IOException,
org.apache.http.HttpException
submitRequest in interface org.apache.http.nio.NHttpClientConnectionsubmitRequest in class org.apache.http.impl.nio.DefaultNHttpClientConnectionIOExceptionorg.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 String toString()
toString in class org.apache.http.impl.nio.NHttpConnectionBasepublic boolean isReleaseConn()
public void setReleaseConn(boolean releaseConn)
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.