Class WebSocketFrameAggregator

java.lang.Object
org.jboss.netty.handler.codec.oneone.OneToOneDecoder
org.jboss.netty.handler.codec.http.websocketx.WebSocketFrameAggregator
All Implemented Interfaces:
ChannelHandler, ChannelUpstreamHandler

public class WebSocketFrameAggregator extends OneToOneDecoder
Handler that aggregate fragmented WebSocketFrame's. Be aware if PING/PONG/CLOSE frames are send in the middle of a fragmented WebSocketFrame they will just get forwarded to the next handler in the pipeline.
  • Field Details

    • maxFrameSize

      private final int maxFrameSize
    • currentFrame

      private WebSocketFrame currentFrame
    • tooLongFrameFound

      private boolean tooLongFrameFound
  • Constructor Details

    • WebSocketFrameAggregator

      public WebSocketFrameAggregator(int maxFrameSize)
      Construct a new instance
      Parameters:
      maxFrameSize - If the size of the aggregated frame exceeds this value, a TooLongFrameException is thrown.
  • Method Details