public class ServerInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
ChannelInboundHandler which offers an easy way to initialize a
Channel once it was registered to its EventLoop.| Constructor and Description |
|---|
ServerInitializer(io.netty.handler.ssl.SslContext sslCtx,
Connector.ConnectorType connectorType,
FolderScanPluginManager pluginManager)
Creates a new
HttpRequestHandler instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
initChannel(io.netty.channel.Channel ch) |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic ServerInitializer(io.netty.handler.ssl.SslContext sslCtx,
Connector.ConnectorType connectorType,
FolderScanPluginManager pluginManager)
HttpRequestHandler instance.sslCtx - null if SSL is not enabledconnectorType - type of ConnectorpluginManager - a pluginManager instance.