public class WebSocketFrameAggregator extends OneToOneDecoder
WebSocketFrame they will
just get forwarded to the next handler in the pipeline.ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
private WebSocketFrame |
currentFrame |
private int |
maxFrameSize |
private boolean |
tooLongFrameFound |
| Constructor and Description |
|---|
WebSocketFrameAggregator(int maxFrameSize)
Construct a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
decode(ChannelHandlerContext ctx,
Channel channel,
java.lang.Object message)
Transforms the specified received message into another message and return
the transformed message.
|
handleUpstreamprivate final int maxFrameSize
private WebSocketFrame currentFrame
private boolean tooLongFrameFound
public WebSocketFrameAggregator(int maxFrameSize)
maxFrameSize - If the size of the aggregated frame exceeds this value,
a TooLongFrameException is thrown.protected java.lang.Object decode(ChannelHandlerContext ctx, Channel channel, java.lang.Object message) throws java.lang.Exception
OneToOneDecodernull if the received message
is supposed to be discarded.decode in class OneToOneDecoderjava.lang.Exception