Class ReadOnlyDelegatedFrame

java.lang.Object
org.eclipse.jetty.websocket.common.frames.ReadOnlyDelegatedFrame
All Implemented Interfaces:
Frame

public class ReadOnlyDelegatedFrame extends Object implements Frame
Immutable, Read-only, Frame implementation.
  • Field Details

    • delegate

      private final Frame delegate
  • Constructor Details

    • ReadOnlyDelegatedFrame

      public ReadOnlyDelegatedFrame(Frame frame)
  • Method Details

    • getMask

      public byte[] getMask()
      Specified by:
      getMask in interface Frame
    • getOpCode

      public byte getOpCode()
      Specified by:
      getOpCode in interface Frame
    • getPayload

      public ByteBuffer getPayload()
      Specified by:
      getPayload in interface Frame
    • getPayloadLength

      public int getPayloadLength()
      Description copied from interface: Frame
      The original payload length (Buffer.remaining())
      Specified by:
      getPayloadLength in interface Frame
      Returns:
      the original payload length (Buffer.remaining())
    • getType

      public Frame.Type getType()
      Specified by:
      getType in interface Frame
    • hasPayload

      public boolean hasPayload()
      Specified by:
      hasPayload in interface Frame
    • isFin

      public boolean isFin()
      Specified by:
      isFin in interface Frame
    • isLast

      @Deprecated public boolean isLast()
      Deprecated.
      Description copied from interface: Frame
      Specified by:
      isLast in interface Frame
      Returns:
      true if final frame.
    • isMasked

      public boolean isMasked()
      Specified by:
      isMasked in interface Frame
    • isRsv1

      public boolean isRsv1()
      Specified by:
      isRsv1 in interface Frame
    • isRsv2

      public boolean isRsv2()
      Specified by:
      isRsv2 in interface Frame
    • isRsv3

      public boolean isRsv3()
      Specified by:
      isRsv3 in interface Frame