use of org.apache.synapse.commons.emulator.http.producer.HttpResponseProcessHandler in project wso2-synapse by wso2.
the class ChannelPipelineInitializer method initializeHttpProducerChannel.
private void initializeHttpProducerChannel(SocketChannel ch) {
ChannelPipeline pipeline = ch.pipeline();
// Enable HTTPS if necessary.
if (sslCtx != null) {
pipeline.addLast(sslCtx.newHandler(ch.alloc()));
}
pipeline.addLast(new HttpClientCodec());
pipeline.addLast(new HttpContentDecompressor());
pipeline.addLast(new HttpResponseProcessHandler(producerOutgoingMessage));
}
Aggregations