Class ReadOnlyDelegatedFrame

  • All Implemented Interfaces:
    Frame

    public class ReadOnlyDelegatedFrame
    extends java.lang.Object
    implements Frame
    Immutable, Read-only, Frame implementation.
    • Constructor Detail

      • ReadOnlyDelegatedFrame

        public ReadOnlyDelegatedFrame​(Frame frame)
    • Method Detail

      • getMask

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

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

        public java.nio.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())
      • 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