public class LoggingNHttpServerConnection extends org.apache.http.impl.nio.DefaultNHttpServerConnection implements UpgradableNHttpConnection
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,
org.apache.http.HttpRequestFactory requestFactory,
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.NHttpServerEventHandler handler) |
protected org.apache.http.nio.NHttpMessageParser<org.apache.http.HttpRequest> |
createRequestParser(org.apache.http.nio.reactor.SessionInputBuffer buffer,
org.apache.http.HttpRequestFactory requestFactory,
org.apache.http.params.HttpParams params) |
protected org.apache.http.nio.NHttpMessageWriter<org.apache.http.HttpResponse> |
createResponseWriter(org.apache.http.nio.reactor.SessionOutputBuffer buffer,
org.apache.http.params.HttpParams params) |
org.apache.http.nio.reactor.IOSession |
getIOSession() |
void |
produceOutput(org.apache.http.nio.NHttpServerEventHandler handler) |
void |
shutdown() |
void |
submitResponse(org.apache.http.HttpResponse response) |
java.lang.String |
toString() |
consumeInput, createIncomingContentStrategy, isResponseSubmitted, onRequestReceived, onResponseSubmitted, produceOutput, resetInput, resetOutput
assertNotClosed, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getHttpRequest, getHttpResponse, getStatus
public LoggingNHttpServerConnection(org.apache.http.nio.reactor.IOSession session, org.apache.http.HttpRequestFactory requestFactory, 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 submitResponse(org.apache.http.HttpResponse response) throws java.io.IOException, org.apache.http.HttpException
submitResponse
in interface org.apache.http.nio.NHttpServerConnection
submitResponse
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
java.io.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
protected org.apache.http.nio.NHttpMessageWriter<org.apache.http.HttpResponse> createResponseWriter(org.apache.http.nio.reactor.SessionOutputBuffer buffer, org.apache.http.params.HttpParams params)
createResponseWriter
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
protected org.apache.http.nio.NHttpMessageParser<org.apache.http.HttpRequest> createRequestParser(org.apache.http.nio.reactor.SessionInputBuffer buffer, org.apache.http.HttpRequestFactory requestFactory, org.apache.http.params.HttpParams params)
createRequestParser
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
public java.lang.String toString()
toString
in class org.apache.http.impl.nio.NHttpConnectionBase
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
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.