Class NioChannelInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
org.summerboot.jexpress.nio.server.NioChannelInitializer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
HttpNioChannelInitializer
public abstract class NioChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Service.ChannelHandlerType,Set<String>> protected com.google.inject.Injectorprotected static final org.apache.logging.log4j.Loggerprotected io.netty.handler.ssl.SslContextprotected NioConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninit(com.google.inject.Injector injector, Map<Service.ChannelHandlerType, Set<String>> channelHandlerNames) voidinitChannel(io.netty.channel.socket.SocketChannel socketChannel) protected abstract voidinitChannelPipeline(io.netty.channel.ChannelPipeline pipeline, NioConfig nioCfg) voidprotected voidinitSSL_OpenSSL(io.netty.channel.socket.SocketChannel socketChannel, io.netty.channel.ChannelPipeline pipeline) Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger log -
injector
protected com.google.inject.Injector injector -
nettySslContext
protected io.netty.handler.ssl.SslContext nettySslContext -
nioCfg
-
channelHandlerNames
-
namedReadIdle
-
namedWriteIdle
-
namedFileUpload
-
namedWebsocket
-
namedPing
-
namedBusiness
-
-
Constructor Details
-
NioChannelInitializer
public NioChannelInitializer()
-
-
Method Details
-
init
public NioChannelInitializer init(com.google.inject.Injector injector, Map<Service.ChannelHandlerType, Set<String>> channelHandlerNames) -
initSSL
-
initChannel
public void initChannel(io.netty.channel.socket.SocketChannel socketChannel) - Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
initSSL_OpenSSL
protected void initSSL_OpenSSL(io.netty.channel.socket.SocketChannel socketChannel, io.netty.channel.ChannelPipeline pipeline) -
initChannelPipeline
protected abstract void initChannelPipeline(io.netty.channel.ChannelPipeline pipeline, NioConfig nioCfg)
-