class LocalApiServerPipelineFactory extends ChannelInitializer<SocketChannel> {

	public void initChannel(SocketChannel ch) throws Exception {
		LoggingService.logDebug(MODULE_NAME, "Start Initialize channel for communication and assign handler");
		ChannelPipeline pipeline = ch.pipeline();
		if (sslCtx != null) {
			pipeline.addLast(sslCtx.newHandler(ch.alloc()));
		}
		pipeline.addLast(new HttpServerCodec());
		pipeline.addLast(new HttpObjectAggregator(Integer.MAX_VALUE));
		pipeline.addLast(new LocalApiServerHandler(executor));	
		LoggingService.logDebug(MODULE_NAME, "Finished Initialize channel for communication and assign handler");
	}

	public  LocalApiServerPipelineFactory(SslContext sslCtx);

}