Top Description Constructors Methods
org.java_websocket.framing

public abstract Class ControlFrame

extends FramedataImpl1
Class Inheritance
Known Direct Subclasses
org.java_websocket.framing.PingFrame, org.java_websocket.framing.PongFrame, org.java_websocket.framing.CloseFrame
Imports
org.java_websocket.enums.Opcode, org.java_websocket.exceptions.InvalidDataException, .InvalidFrameException

Abstract class to represent control frames

Constructor Summary

AccessConstructor and Description
public
ControlFrame(Opcode
the opcode to use
opcode
)

Class to represent a control frame

Method Summary

Modifier and TypeMethod and Description
public void
isValid()

Implements abstract org.java_websocket.framing.FramedataImpl1.isValid.

Check if the frame is valid due to specification

Inherited from org.java_websocket.framing.FramedataImpl1:
appendequalsgetgetOpcodegetPayloadDatagetTransfereMaskedhashCodeisFinisRSV1isRSV2isRSV3setFinsetPayloadsetRSV1setRSV2setRSV3setTransferemaskedtoString

Constructor Detail

ControlFrameback to summary
public ControlFrame(Opcode opcode)

Class to represent a control frame

Parameters
opcode:Opcode

the opcode to use

Method Detail

isValidback to summary
public void isValid() throws InvalidDataException

Implements abstract org.java_websocket.framing.FramedataImpl1.isValid.

Doc from org.java_websocket.framing.FramedataImpl1.isValid.

Check if the frame is valid due to specification

Annotations
@Override
Exceptions
InvalidDataException:
thrown if the frame is not a valid frame