clientBootstrap.getPipeline().addLast("handler",(SimpleChannelUpstreamHandler)clientHandler);
}
protected void setupClassicPipelineWithAggregatorAndSeparator(ServerBootstrap serverBootstrap, ClientBootstrap clientBootstrap, Handler serverHandler, Handler clientHandler) {
serverBootstrap.getPipeline().addLast("decoder",new IcapRequestDecoder());
serverBootstrap.getPipeline().addLast("chunkAggregator",new IcapChunkAggregator(4012));
serverBootstrap.getPipeline().addLast("encoder",new IcapResponseEncoder());
serverBootstrap.getPipeline().addLast("chunkSeparator",new IcapChunkSeparator(4012));
serverBootstrap.getPipeline().addLast("handler",(SimpleChannelUpstreamHandler)serverHandler);
clientBootstrap.getPipeline().addLast("encoder",new IcapRequestEncoder());
clientBootstrap.getPipeline().addLast("chunkSeparator",new IcapChunkSeparator(4021));
clientBootstrap.getPipeline().addLast("decoder",new IcapResponseDecoder());
clientBootstrap.getPipeline().addLast("chunkAggregator",new IcapChunkAggregator(4012));
clientBootstrap.getPipeline().addLast("handler",(SimpleChannelUpstreamHandler)clientHandler);
}