use of org.jboss.netty.channel.DefaultChannelPipeline in project opentsdb by OpenTSDB.
the class NettyMocks method createHttpPipeline.
/**
* Returns a simple pipeline with an HttpRequestDecoder and an
* HttpResponseEncoder. No mocking, returns an actual pipeline
* @return The pipeline
*/
private DefaultChannelPipeline createHttpPipeline() {
DefaultChannelPipeline pipeline = new DefaultChannelPipeline();
pipeline.addLast("requestDecoder", new HttpRequestDecoder());
pipeline.addLast("responseEncoder", new HttpResponseEncoder());
return pipeline;
}
use of org.jboss.netty.channel.DefaultChannelPipeline in project druid by druid-io.
the class HttpClientPipelineFactory method getPipeline.
@Override
public ChannelPipeline getPipeline() {
ChannelPipeline pipeline = new DefaultChannelPipeline();
pipeline.addLast("codec", new HttpClientCodec());
pipeline.addLast("inflater", new HttpContentDecompressor());
return pipeline;
}
Aggregations