Search in sources :

Example 1 with HttpResponseProcessHandler

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));
}
Also used : HttpResponseProcessHandler(org.apache.synapse.commons.emulator.http.producer.HttpResponseProcessHandler) HttpClientCodec(io.netty.handler.codec.http.HttpClientCodec) ChannelPipeline(io.netty.channel.ChannelPipeline) HttpContentDecompressor(io.netty.handler.codec.http.HttpContentDecompressor)

Aggregations

ChannelPipeline (io.netty.channel.ChannelPipeline)1 HttpClientCodec (io.netty.handler.codec.http.HttpClientCodec)1 HttpContentDecompressor (io.netty.handler.codec.http.HttpContentDecompressor)1 HttpResponseProcessHandler (org.apache.synapse.commons.emulator.http.producer.HttpResponseProcessHandler)1