@ChannelHandler.Sharable
public class VelocityDecodeHandler
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
Constructor and Description |
---|
VelocityDecodeHandler(UserConnection info) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf bytebuf,
List<Object> out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public VelocityDecodeHandler(UserConnection info)
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf bytebuf, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2016–2021. All rights reserved.