public class SynapseNHttpClientConnection
extends org.apache.http.impl.nio.DefaultNHttpClientConnection
requestWriter, responseParserconnMetrics, contentDecoder, contentEncoder, context, hasBufferedInput, hasBufferedOutput, inbuf, incomingContentStrategy, inTransportMetrics, outbuf, outgoingContentStrategy, outTransportMetrics, remote, request, response, session, status| Constructor and Description |
|---|
SynapseNHttpClientConnection(org.apache.http.nio.reactor.IOSession session,
int bufferSize,
int fragmentSizeHint,
org.apache.http.nio.util.ByteBufferAllocator allocator,
CharsetDecoder charDecoder,
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 |
close() |
void |
consumeInput(org.apache.http.nio.NHttpClientEventHandler handler) |
void |
markForRelease()
Mark this connection to be released to the pool.
|
void |
produceOutput(org.apache.http.nio.NHttpClientEventHandler handler) |
void |
shutdown() |
void |
submitRequest(org.apache.http.HttpRequest request) |
consumeInput, createRequestWriter, createResponseParser, isRequestSubmitted, onRequestSubmitted, onResponseReceived, produceOutput, resetInput, resetOutputassertNotClosed, bind, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getHttpRequest, getHttpResponse, getStatuspublic SynapseNHttpClientConnection(org.apache.http.nio.reactor.IOSession session,
int bufferSize,
int fragmentSizeHint,
org.apache.http.nio.util.ByteBufferAllocator allocator,
CharsetDecoder charDecoder,
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 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.DefaultNHttpClientConnectionpublic void markForRelease()
This needs to be called after finishing work related to a particular request/response, and only when keep-alive is enabled
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.