java.lang.Object
org.eclipse.jetty.websocket.common.WebSocketFrame
org.eclipse.jetty.websocket.common.frames.DataFrame
All Implemented Interfaces:
Frame
Direct Known Subclasses:
BinaryFrame, ContinuationFrame, TextFrame

public class DataFrame extends WebSocketFrame
A Data Frame
  • Constructor Details

    • DataFrame

      protected DataFrame(byte opcode)
    • DataFrame

      public DataFrame(Frame basedOn)
      Construct new DataFrame based on headers of provided frame.

      Useful for when working in extensions and a new frame needs to be created.

      Parameters:
      basedOn - the frame this one is based on
    • DataFrame

      public DataFrame(Frame basedOn, boolean continuation)
      Construct new DataFrame based on headers of provided frame, overriding for continuations if needed.

      Useful for when working in extensions and a new frame needs to be created.

      Parameters:
      basedOn - the frame this one is based on
      continuation - true if this is a continuation frame
  • Method Details