Class SessionWebSocketMessageHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<T>
-
- be.yildizgames.module.network.netty.server.AbstractSessionMessageHandler<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
-
- be.yildizgames.module.network.netty.server.SessionWebSocketMessageHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class SessionWebSocketMessageHandler extends AbstractSessionMessageHandler<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
- Author:
- Grégory Van den Borre
-
-
Field Summary
-
Fields inherited from class be.yildizgames.module.network.netty.server.AbstractSessionMessageHandler
handler
-
-
Constructor Summary
Constructors Constructor Description SessionWebSocketMessageHandler(be.yildizgames.module.network.AbstractHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.websocketx.TextWebSocketFrame message)-
Methods inherited from class be.yildizgames.module.network.netty.server.AbstractSessionMessageHandler
exceptionCaught, getSession, setSession
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelRead0
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.websocketx.TextWebSocketFrame message) throws Exception- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>- Throws:
Exception
-
-