Class ContinuationWebSocketFrame

java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.netty.handler.codec.http.websocketx.WebSocketFrame
io.netty.handler.codec.http.websocketx.ContinuationWebSocketFrame
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted

public class ContinuationWebSocketFrame extends WebSocketFrame
Web Socket continuation frame containing continuation text or binary data. This is used for fragmented messages where the contents of a messages is contained more than 1 frame.
  • Constructor Details

    • ContinuationWebSocketFrame

      public ContinuationWebSocketFrame()
      Creates a new empty continuation frame.
    • ContinuationWebSocketFrame

      public ContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
      Creates a new continuation frame with the specified binary data. The final fragment flag is set to true.
      Parameters:
      binaryData - the content of the frame.
    • ContinuationWebSocketFrame

      public ContinuationWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
      Creates a new continuation frame with the specified binary data.
      Parameters:
      finalFragment - flag indicating if this frame is the final fragment
      rsv - reserved bits used for protocol extensions
      binaryData - the content of the frame.
    • ContinuationWebSocketFrame

      public ContinuationWebSocketFrame(boolean finalFragment, int rsv, String text)
      Creates a new continuation frame with the specified text data
      Parameters:
      finalFragment - flag indicating if this frame is the final fragment
      rsv - reserved bits used for protocol extensions
      text - text content of the frame.
  • Method Details