public class ControlFrame extends Frame
Modifier | Constructor and Description |
---|---|
protected |
ControlFrame(Opcode opcode,
byte[] payload)
Constructs a generic Web Socket control frame with all reserved bits cleared.
|
protected |
ControlFrame(Opcode opcode,
int rsvBits,
byte[] payload)
Constructs a generic Web Socket control frame.
|
getOpcode, getPayload, getPayloadLength, getRsvBits, isFinalFragment, isRsvBit1, isRsvBit2, isRsvBit3
protected ControlFrame(Opcode opcode, int rsvBits, byte[] payload)
opcode
- the type of created framersvBits
- reserved bits for extensions or future versionspayload
- payload dataIllegalArgumentException
- if the length of the payload data is greater
than 125protected ControlFrame(Opcode opcode, byte[] payload)
opcode
- the type of created framepayload
- payload dataIllegalArgumentException
- if the length of the payload data is greater
than 125Copyright © 2017–2022 SNF4J.ORG. All rights reserved.