org.apache.synapse.transport.nhttp
Class LoggingNHttpServerConnection
java.lang.Object
org.apache.http.impl.nio.NHttpConnectionBase
org.apache.http.impl.nio.DefaultNHttpServerConnection
org.apache.synapse.transport.nhttp.LoggingNHttpServerConnection
- All Implemented Interfaces:
- 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
public class LoggingNHttpServerConnection
- extends org.apache.http.impl.nio.DefaultNHttpServerConnection
Fields inherited from class org.apache.http.impl.nio.DefaultNHttpServerConnection |
requestParser, responseWriter |
Fields 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, status |
Fields inherited from interface org.apache.http.nio.NHttpConnection |
ACTIVE, CLOSED, CLOSING |
Constructor Summary |
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 Summary |
void |
close()
|
void |
consumeInput(org.apache.http.nio.NHttpServiceHandler 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)
|
void |
produceOutput(org.apache.http.nio.NHttpServiceHandler handler)
|
void |
shutdown()
|
void |
submitResponse(org.apache.http.HttpResponse response)
|
String |
toString()
|
Methods inherited from class org.apache.http.impl.nio.DefaultNHttpServerConnection |
isResponseSubmitted, resetInput, resetOutput |
Methods inherited from class org.apache.http.impl.nio.NHttpConnectionBase |
assertNotClosed, createConnectionMetrics, createContentDecoder, createContentEncoder, createTransportMetrics, getContext, getHttpRequest, getHttpResponse, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocketTimeout, getStatus, hasBufferedInput, hasBufferedOutput, isOpen, isStale, prepareDecoder, prepareEncoder, requestInput, requestOutput, setSocketTimeout, suspendInput, suspendOutput |
Methods inherited from interface org.apache.http.nio.NHttpConnection |
getContext, getHttpRequest, getHttpResponse, getStatus |
Methods inherited from interface org.apache.http.HttpConnection |
getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout |
Methods inherited from interface org.apache.http.nio.IOControl |
requestInput, requestOutput, suspendInput, suspendOutput |
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)
close
public void close()
throws IOException
- Specified by:
close
in interface org.apache.http.HttpConnection
- Overrides:
close
in class org.apache.http.impl.nio.NHttpConnectionBase
- Throws:
IOException
shutdown
public void shutdown()
throws IOException
- Specified by:
shutdown
in interface org.apache.http.HttpConnection
- Specified by:
shutdown
in interface org.apache.http.nio.IOControl
- Overrides:
shutdown
in class org.apache.http.impl.nio.NHttpConnectionBase
- Throws:
IOException
submitResponse
public void submitResponse(org.apache.http.HttpResponse response)
throws IOException,
org.apache.http.HttpException
- Specified by:
submitResponse
in interface org.apache.http.nio.NHttpServerConnection
- Overrides:
submitResponse
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
- Throws:
IOException
org.apache.http.HttpException
consumeInput
public void consumeInput(org.apache.http.nio.NHttpServiceHandler handler)
- Specified by:
consumeInput
in interface org.apache.http.nio.NHttpServerIOTarget
- Overrides:
consumeInput
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
produceOutput
public void produceOutput(org.apache.http.nio.NHttpServiceHandler handler)
- Specified by:
produceOutput
in interface org.apache.http.nio.NHttpServerIOTarget
- Overrides:
produceOutput
in class org.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:
createResponseWriter
in class org.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:
createRequestParser
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
toString
public String toString()
- Overrides:
toString
in class org.apache.http.impl.nio.DefaultNHttpServerConnection
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.