public class ClientIntializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Modifier and Type | Field and Description |
|---|---|
protected ConnectHandler |
connectHandler |
protected io.netty.channel.ChannelHandler |
handler |
protected boolean |
ssl |
protected String[] |
sslProtocols |
| Constructor and Description |
|---|
ClientIntializer(boolean ssl,
io.netty.channel.ChannelHandler handler,
ConnectHandler connectHandler,
String[] sslProtocols) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSSL(io.netty.channel.ChannelPipeline pipeline,
boolean forceToFront,
String[] sslProtocols)
Adds an SSL engine to the given pipeline.
|
void |
configurePipeline(io.netty.channel.ChannelPipeline pipeline) |
void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharableprotected final boolean ssl
protected final ConnectHandler connectHandler
protected final io.netty.channel.ChannelHandler handler
protected final String[] sslProtocols
public ClientIntializer(boolean ssl,
io.netty.channel.ChannelHandler handler,
ConnectHandler connectHandler,
String[] sslProtocols)
public void initChannel(io.netty.channel.socket.SocketChannel ch)
throws Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Exceptionpublic void configurePipeline(io.netty.channel.ChannelPipeline pipeline)
public static void addSSL(io.netty.channel.ChannelPipeline pipeline,
boolean forceToFront,
String[] sslProtocols)
pipeline - the pipeline to add SSL support toforceToFront - if true then the SSL handler is added to the front of the pipeline otherwise it is added
at the endCopyright © 2012-2015. All Rights Reserved.