public class LoggingNHttpServerConnection
extends org.apache.http.impl.nio.DefaultNHttpServerConnection
requestParser, responseWriter
connMetrics, contentDecoder, contentEncoder, context, hasBufferedInput, hasBufferedOutput, inbuf, incomingContentStrategy, inTransportMetrics, outbuf, outgoingContentStrategy, outTransportMetrics, remote, request, response, session, status
Constructor and Description |
---|
LoggingNHttpServerConnection(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.NHttpMessageParserFactory<org.apache.http.HttpRequest> requestParserFactory,
org.apache.http.nio.NHttpMessageWriterFactory<org.apache.http.HttpResponse> responseWriterFactory,
org.apache.commons.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
consumeInput(org.apache.http.nio.NHttpServerEventHandler handler) |
void |
produceOutput(org.apache.http.nio.NHttpServerEventHandler handler) |
void |
shutdown() |
void |
submitResponse(org.apache.http.HttpResponse response) |
consumeInput, createIncomingContentStrategy, createRequestParser, createResponseWriter, isResponseSubmitted, onRequestReceived, onResponseSubmitted, produceOutput, resetInput, resetOutput
assertNotClosed, bind, createConnectionMetrics, createContentDecoder, createContentEncoder, createOutgoingContentStrategy, createTransportMetrics, getContext, getHttpRequest, getHttpResponse, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, getStatus, hasBufferedInput, hasBufferedOutput, isOpen, isStale, prepareDecoder, prepareEncoder, requestInput, requestOutput, setSocketTimeout, suspendInput, suspendOutput, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getHttpRequest, getHttpResponse, getStatus
public LoggingNHttpServerConnection(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.NHttpMessageParserFactory<org.apache.http.HttpRequest> requestParserFactory, org.apache.http.nio.NHttpMessageWriterFactory<org.apache.http.HttpResponse> responseWriterFactory, org.apache.commons.logging.Log log)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.http.HttpConnection
close
in class org.apache.http.impl.nio.NHttpConnectionBase
IOException
public void shutdown() throws 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
IOException
public void submitResponse(org.apache.http.HttpResponse response) throws IOException, org.apache.http.HttpException
submitResponse
in interface org.apache.http.nio.NHttpServerConnection
submitResponse
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
IOException
org.apache.http.HttpException
public void consumeInput(org.apache.http.nio.NHttpServerEventHandler handler)
consumeInput
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
public void produceOutput(org.apache.http.nio.NHttpServerEventHandler handler)
produceOutput
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.