public class SslServerChannelInitializer extends java.lang.Object implements ChannelInitializer
ChannelInitializer
for servers.Constructor and Description |
---|
SslServerChannelInitializer(io.netty.util.DomainNameMapping<io.netty.handler.ssl.SslContext> domainNameMapping)
New instance.
|
SslServerChannelInitializer(io.netty.handler.ssl.SslContext sslContext)
New instance.
|
Modifier and Type | Method and Description |
---|---|
void |
init(io.netty.channel.Channel channel)
Configures the passed
Channel . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, defaultInitializer
public SslServerChannelInitializer(io.netty.handler.ssl.SslContext sslContext)
sslContext
- to use for configuring SSL.public SslServerChannelInitializer(io.netty.util.DomainNameMapping<io.netty.handler.ssl.SslContext> domainNameMapping)
domainNameMapping
- to use for configuring SSL.public void init(io.netty.channel.Channel channel)
ChannelInitializer
Channel
.
Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.
init
in interface ChannelInitializer
channel
- Netty Channel
.