public class StompWebSocketChatServerInitializer extends ChannelInitializer<SocketChannel>
ChannelHandler.Sharable
Constructor and Description |
---|
StompWebSocketChatServerInitializer(String chatPath) |
Modifier and Type | Method and Description |
---|---|
protected void |
initChannel(SocketChannel channel)
This method will be called once the
Channel was registered. |
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, isSharable
public StompWebSocketChatServerInitializer(String chatPath)
protected void initChannel(SocketChannel channel) throws Exception
ChannelInitializer
Channel
was registered. After the method returns this instance
will be removed from the ChannelPipeline
of the Channel
.initChannel
in class ChannelInitializer<SocketChannel>
channel
- the Channel
which was registered.Exception
- is thrown if an error occurs. In that case it will be handled by
ChannelInitializer.exceptionCaught(ChannelHandlerContext, Throwable)
which will by default close
the Channel
.Copyright © 2008–2021 The Netty Project. All rights reserved.