Package org.jivesoftware.openfire.spi
Class NettyServerInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- org.jivesoftware.openfire.spi.NettyServerInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class NettyServerInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
Creates a newly configuredChannelPipeline
for a new channel.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRAFFIC_HANDLER_NAME
static SystemProperty<Duration>
WRITE_TIMEOUT_SECONDS
Controls the write timeout time in seconds to handle stalled sessions and prevent DoS
-
Constructor Summary
Constructors Constructor Description NettyServerInitializer(ConnectionConfiguration configuration, io.netty.channel.group.ChannelGroup allChannels, Set<NettyChannelHandlerFactory> channelHandlerFactories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initChannel(io.netty.channel.socket.SocketChannel ch)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
WRITE_TIMEOUT_SECONDS
public static final SystemProperty<Duration> WRITE_TIMEOUT_SECONDS
Controls the write timeout time in seconds to handle stalled sessions and prevent DoS
-
TRAFFIC_HANDLER_NAME
public static final String TRAFFIC_HANDLER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NettyServerInitializer
public NettyServerInitializer(ConnectionConfiguration configuration, io.netty.channel.group.ChannelGroup allChannels, Set<NettyChannelHandlerFactory> channelHandlerFactories)
-
-