public class WebSocketFrameAggregator extends io.netty.handler.codec.MessageToMessageDecoder<WebSocketFrame>
WebSocketFrame
they will
just get forwarded to the next handler in the pipeline.Constructor and Description |
---|
WebSocketFrameAggregator(int maxFrameSize)
Construct a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
WebSocketFrame msg,
List<Object> out) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
acceptInboundMessage, channelRead
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
public WebSocketFrameAggregator(int maxFrameSize)
maxFrameSize
- If the size of the aggregated frame exceeds this value,
a TooLongFrameException
is thrown.protected void decode(io.netty.channel.ChannelHandlerContext ctx, WebSocketFrame msg, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.MessageToMessageDecoder<WebSocketFrame>
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2008–2013 The Netty Project. All rights reserved.