public class WebSocketFrameAggregator extends OneToOneDecoder
WebSocketFrame
they will
just get forwarded to the next handler in the pipeline.ChannelHandler.Sharable
Constructor and Description |
---|
WebSocketFrameAggregator(int maxFrameSize)
Construct a new instance
|
Modifier and Type | Method and Description |
---|---|
protected Object |
decode(ChannelHandlerContext ctx,
Channel channel,
Object message)
Transforms the specified received message into another message and return
the transformed message.
|
handleUpstream
public WebSocketFrameAggregator(int maxFrameSize)
maxFrameSize
- If the size of the aggregated frame exceeds this value,
a TooLongFrameException
is thrown.protected Object decode(ChannelHandlerContext ctx, Channel channel, Object message) throws Exception
OneToOneDecoder
null
if the received message
is supposed to be discarded.decode
in class OneToOneDecoder
Exception
Copyright © 2008-2014 The Netty Project. All Rights Reserved.