Class LoggingNHttpServerConnection
java.lang.Object
org.apache.http.impl.nio.NHttpConnectionBase
org.apache.http.impl.nio.DefaultNHttpServerConnection
org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.http.HttpConnection,org.apache.http.HttpInetConnection,org.apache.http.nio.IOControl,org.apache.http.nio.NHttpConnection,org.apache.http.nio.NHttpServerConnection,org.apache.http.nio.NHttpServerIOTarget,org.apache.http.nio.reactor.SessionBufferStatus,org.apache.http.nio.reactor.SocketAccessor,UpgradableNHttpConnection
public class LoggingNHttpServerConnection
extends org.apache.http.impl.nio.DefaultNHttpServerConnection
implements UpgradableNHttpConnection
-
Field Summary
Fields inherited from class org.apache.http.impl.nio.DefaultNHttpServerConnection
requestParser, responseWriterFields inherited from class org.apache.http.impl.nio.NHttpConnectionBase
connMetrics, contentDecoder, contentEncoder, context, hasBufferedInput, hasBufferedOutput, inbuf, incomingContentStrategy, inTransportMetrics, outbuf, outgoingContentStrategy, outTransportMetrics, remote, request, response, session, statusFields inherited from interface org.apache.http.nio.NHttpConnection
ACTIVE, CLOSED, CLOSING -
Constructor Summary
ConstructorsConstructorDescriptionLoggingNHttpServerConnection(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) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(org.apache.http.nio.reactor.IOSession session) voidclose()voidconsumeInput(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.IOSessionvoidproduceOutput(org.apache.http.nio.NHttpServerEventHandler handler) voidshutdown()voidsubmitResponse(org.apache.http.HttpResponse response) toString()Methods inherited from class org.apache.http.impl.nio.DefaultNHttpServerConnection
consumeInput, createIncomingContentStrategy, isResponseSubmitted, onRequestReceived, onResponseSubmitted, produceOutput, resetInput, resetOutputMethods inherited from class org.apache.http.impl.nio.NHttpConnectionBase
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, suspendOutputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpConnection
getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeoutMethods inherited from interface org.apache.http.nio.IOControl
requestInput, requestOutput, suspendInput, suspendOutputMethods inherited from interface org.apache.http.nio.NHttpConnection
getContext, getHttpRequest, getHttpResponse, getStatus
-
Constructor Details
-
LoggingNHttpServerConnection
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)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.http.HttpConnection- Overrides:
closein classorg.apache.http.impl.nio.NHttpConnectionBase- Throws:
IOException
-
shutdown
- Specified by:
shutdownin interfaceorg.apache.http.HttpConnection- Specified by:
shutdownin interfaceorg.apache.http.nio.IOControl- Overrides:
shutdownin classorg.apache.http.impl.nio.NHttpConnectionBase- Throws:
IOException
-
submitResponse
public void submitResponse(org.apache.http.HttpResponse response) throws IOException, org.apache.http.HttpException - Specified by:
submitResponsein interfaceorg.apache.http.nio.NHttpServerConnection- Overrides:
submitResponsein classorg.apache.http.impl.nio.DefaultNHttpServerConnection- Throws:
IOExceptionorg.apache.http.HttpException
-
consumeInput
public void consumeInput(org.apache.http.nio.NHttpServerEventHandler handler) - Overrides:
consumeInputin classorg.apache.http.impl.nio.DefaultNHttpServerConnection
-
produceOutput
public void produceOutput(org.apache.http.nio.NHttpServerEventHandler handler) - Overrides:
produceOutputin classorg.apache.http.impl.nio.DefaultNHttpServerConnection
-
createResponseWriter
protected org.apache.http.nio.NHttpMessageWriter<org.apache.http.HttpResponse> createResponseWriter(org.apache.http.nio.reactor.SessionOutputBuffer buffer, org.apache.http.params.HttpParams params) - Overrides:
createResponseWriterin classorg.apache.http.impl.nio.DefaultNHttpServerConnection
-
createRequestParser
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) - Overrides:
createRequestParserin classorg.apache.http.impl.nio.DefaultNHttpServerConnection
-
toString
- Overrides:
toStringin classorg.apache.http.impl.nio.NHttpConnectionBase
-
getIOSession
public org.apache.http.nio.reactor.IOSession getIOSession()- Specified by:
getIOSessionin interfaceUpgradableNHttpConnection
-
bind
public void bind(org.apache.http.nio.reactor.IOSession session) - Specified by:
bindin interfaceUpgradableNHttpConnection- Overrides:
bindin classorg.apache.http.impl.nio.NHttpConnectionBase
-