public final class Netty3HttpChannel extends AbstractRestChannel
detailedErrorsEnabled, request| Constructor and Description |
|---|
Netty3HttpChannel(Netty3HttpServerTransport transport,
Netty3HttpRequest request,
OrderedUpstreamMessageEvent orderedUpstreamMessageEvent,
boolean detailedErrorsEnabled,
ThreadContext threadContext) |
| Modifier and Type | Method and Description |
|---|---|
BytesStreamOutput |
newBytesOutput() |
void |
sendResponse(RestResponse response) |
bytesOutput, bytesOutputOrNull, detailedErrorsEnabled, newBuilder, newBuilder, newErrorBuilder, requestpublic Netty3HttpChannel(Netty3HttpServerTransport transport, Netty3HttpRequest request, @Nullable OrderedUpstreamMessageEvent orderedUpstreamMessageEvent, boolean detailedErrorsEnabled, ThreadContext threadContext)
transport - The corresponding Netty3HttpServerTransport where this channel belongs to.request - The request that is handled by this channel.orderedUpstreamMessageEvent - If HTTP pipelining is enabled provide the corresponding Netty upstream event. May be null if
HTTP pipelining is disabled.detailedErrorsEnabled - true iff error messages should include stack traces.public BytesStreamOutput newBytesOutput()
newBytesOutput in class AbstractRestChannelpublic void sendResponse(RestResponse response)