Class ControlFrame

    • Field Detail

      • MAX_CONTROL_PAYLOAD

        public static final int MAX_CONTROL_PAYLOAD
        Deprecated.
        Maximum size of Control frame, per RFC 6455
        See Also:
        Constant Field Values
    • Constructor Detail

      • ControlFrame

        public ControlFrame​(byte opcode)
        Deprecated.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class WebSocketFrame
      • setPayload

        public WebSocketFrame setPayload​(java.nio.ByteBuffer buf)
        Deprecated.
        Description copied from class: WebSocketFrame
        Set the data payload.

        The provided buffer will be used as is, no copying of bytes performed.

        The provided buffer should be flipped and ready to READ from.

        Overrides:
        setPayload in class WebSocketFrame
        Parameters:
        buf - the bytebuffer to set
        Returns:
        the frame itself