public class NettyClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Constructor and Description |
|---|
NettyClientInitializer(io.netty.handler.ssl.SslContext sslContext,
NettyHttpClient.BaseCallback callback,
java.util.concurrent.CountDownLatch latch) |
| Modifier and Type | Method and Description |
|---|---|
ResponseWrapper |
getResponse() |
protected void |
initChannel(io.netty.channel.socket.SocketChannel socketChannel) |
void |
resetLatch(java.util.concurrent.CountDownLatch latch) |
channelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredpublic NettyClientInitializer(io.netty.handler.ssl.SslContext sslContext,
NettyHttpClient.BaseCallback callback,
java.util.concurrent.CountDownLatch latch)
protected void initChannel(io.netty.channel.socket.SocketChannel socketChannel)
throws java.lang.Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>java.lang.Exceptionpublic void resetLatch(java.util.concurrent.CountDownLatch latch)
public ResponseWrapper getResponse()
Copyright © 2019. All Rights Reserved.