Class BinaryFrame


public class BinaryFrame extends TyrusFrame
Binary frame representation.
  • Constructor Details

    • BinaryFrame

      public BinaryFrame(Frame frame)
      Constructor.
      Parameters:
      frame - original (binary) frame.
    • BinaryFrame

      public BinaryFrame(Frame frame, boolean continuation)
      Constructor.
      Parameters:
      frame - original (binary) frame.
      continuation - true when this frame is continuation frame, false otherwise.
    • BinaryFrame

      public BinaryFrame(byte[] payload, boolean continuation, boolean fin)
      Constructor.
      Parameters:
      payload - frame payload.
      continuation - true true when this frame is continuation frame, false otherwise.
      fin - true when this frame is last in current partial message batch. Standard (non-continuous) frames have this bit set to true.
  • Method Details

    • respond

      public void respond(TyrusWebSocket socket)
      Description copied from class: TyrusFrame
      Execution part of frame processing.
      Specified by:
      respond in class TyrusFrame
      Parameters:
      socket - socket on which the appropriate action will be performed.