Package | Description |
---|---|
org.snf4j.websocket.frame |
Provides interfaces and classes for the Web Socket frames and related codecs.
|
Modifier and Type | Method and Description |
---|---|
static Opcode |
Opcode.findByValue(int value)
Finds an Opcode by its numeric value.
|
Opcode |
Frame.getOpcode()
Returns the type (opcode) of this frame.
|
static Opcode |
Opcode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Opcode[] |
Opcode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
ControlFrame(Opcode opcode,
byte[] payload)
Constructs a generic Web Socket control frame with all reserved bits cleared.
|
ControlFrame(Opcode opcode,
int rsvBits,
byte[] payload)
Constructs a generic Web Socket control frame.
|
DataFrame(Opcode opcode,
boolean finalFragment,
int rsvBits,
byte[] payload)
Constructs a generic Web Socket data frame.
|
DataFrame(Opcode opcode,
byte[] payload)
Constructs a generic Web Socket data frame being the final fragment in a
message and with all reserved bits cleared.
|
Frame(Opcode opcode,
boolean finalFragment,
int rsvBits,
byte[] payload)
Constructs a generic Web Socket frame.
|
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.