Allow for Netty 4 HTTP extensions

This commit enables the Netty 4 HTTP server implementation to allow for
extensions.
This commit is contained in:
Jason Tedor 2016-08-02 14:09:05 -04:00
parent 00ca6c417e
commit 669daccfbb

View File

@ -525,12 +525,12 @@ public class Netty4HttpServerTransport extends AbstractLifecycleComponent implem
return new HttpChannelHandler(this, detailedErrorsEnabled, threadPool.getThreadContext()); return new HttpChannelHandler(this, detailedErrorsEnabled, threadPool.getThreadContext());
} }
static class HttpChannelHandler extends ChannelInitializer<SocketChannel> { protected static class HttpChannelHandler extends ChannelInitializer<SocketChannel> {
private final Netty4HttpServerTransport transport; private final Netty4HttpServerTransport transport;
private final Netty4HttpRequestHandler requestHandler; private final Netty4HttpRequestHandler requestHandler;
HttpChannelHandler( protected HttpChannelHandler(
final Netty4HttpServerTransport transport, final Netty4HttpServerTransport transport,
final boolean detailedErrorsEnabled, final boolean detailedErrorsEnabled,
final ThreadContext threadContext) { final ThreadContext threadContext) {