class WebConfigContainer implements Container {

    private static Logger logger = LoggerFactory.getLogger(WebConfigContainer.class);

    private NioEventLoopGroup serverWorkerGroup;

    private NioEventLoopGroup serverBossGroup;

    public WebConfigContainer() {

        // 配置管理，并发处理很小，使用单线程处理网络事件
        serverBossGroup = new NioEventLoopGroup(1);
        serverWorkerGroup = new NioEventLoopGroup(1);

    }

    @Override
    public void start() {
        ServerBootstrap httpServerBootstrap = new ServerBootstrap();
        httpServerBootstrap.group(serverBossGroup, serverWorkerGroup).channel(NioServerSocketChannel.class)
                .childHandler(new ChannelInitializer<SocketChannel>() {

                    @Override
                    public void initChannel(SocketChannel ch) throws Exception {<FILL_FUNCTION_BODY>}
                });

        try {
            httpServerBootstrap.bind(ProxyConfig.getInstance().getConfigServerBind(),
                    ProxyConfig.getInstance().getConfigServerPort()).get();
            logger.info("http server start on port " + ProxyConfig.getInstance().getConfigServerPort());
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }

        RouteConfig.init();
    }

    @Override
    public void stop() {
        serverBossGroup.shutdownGracefully();
        serverWorkerGroup.shutdownGracefully();
    }

}

                        ChannelPipeline pipeline = ch.pipeline();

                        pipeline.addLast(new HttpServerCodec());
                        pipeline.addLast(new HttpObjectAggregator(8 * 1024 * 1024));
                        pipeline.addLast(new ChunkedWriteHandler());
                        pipeline.addLast(new HttpRequestHandler());
                    
<no_super_class>