@Override
public ChannelPipeline getPipeline() throws Exception
{
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("codec", new HttpClientCodec());
pipeline.addLast("dechunker", new HttpChunkAggregator(_maxResponseSize));
pipeline.addLast("rapiCodec", new RAPClientCodec());
// Could introduce an ExecutionHandler here (before RAPResponseHandler)
// to execute the response handling on a different thread.
pipeline.addLast("responseHandler", _responseHandler);