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, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic 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>Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2008–2016 The Netty Project. All rights reserved.