protected class DefaultHttpClient.HttpClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Modifier | Constructor and Description | 
|---|---|
protected  | 
HttpClientInitializer(io.netty.handler.ssl.SslContext sslContext,
                     String host,
                     int port,
                     boolean stream,
                     boolean acceptsEvents,
                     Consumer<io.netty.channel.ChannelHandlerContext> contextConsumer)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addFinalHandler(io.netty.channel.ChannelPipeline pipeline)
Allows overriding the final handler added to the pipeline. 
 | 
protected void | 
initChannel(io.netty.channel.socket.SocketChannel ch)  | 
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedprotected HttpClientInitializer(io.netty.handler.ssl.SslContext sslContext,
                                String host,
                                int port,
                                boolean stream,
                                boolean acceptsEvents,
                                Consumer<io.netty.channel.ChannelHandlerContext> contextConsumer)
sslContext - The ssl contexthost - The hostport - The portstream - Whether is streamacceptsEvents - Whether an event stream is acceptedcontextConsumer - The context consumerprotected void initChannel(io.netty.channel.socket.SocketChannel ch)
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>ch - The channelprotected void addFinalHandler(io.netty.channel.ChannelPipeline pipeline)
pipeline - The pipeline