if (NettyHttpInboundChannelAdapter.this.ssl) {
SSLEngine engine = sslContext.createSSLEngine();
engine.setUseClientMode(false);
pipeline.addLast("ssl", new SslHandler(engine));
}
LoggingHandler loggingHandler = new LoggingHandler();
if (loggingHandler.getLogger().isDebugEnabled()) {
pipeline.addLast("logger", loggingHandler);
}
pipeline.addLast("decoder", new HttpRequestDecoder());
pipeline.addLast("aggregator", new HttpChunkAggregator(1024 * 1024));
pipeline.addLast("encoder", new HttpResponseEncoder());