public class BinaryFrame extends TyrusFrame
TyrusFrame.FrameType
Frame.Builder
Constructor and Description |
---|
BinaryFrame(byte[] payload,
boolean continuation,
boolean fin)
Constructor.
|
BinaryFrame(Frame frame)
Constructor.
|
BinaryFrame(Frame frame,
boolean continuation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
respond(TyrusWebSocket socket)
Execution part of frame processing.
|
getFrameType, wrap
builder, builder, getMaskingKey, getOpcode, getPayloadData, getPayloadLength, isControlFrame, isFin, isMask, isRsv1, isRsv2, isRsv3, toString
public BinaryFrame(Frame frame)
frame
- original (binary) frame.public BinaryFrame(Frame frame, boolean continuation)
frame
- original (binary) frame.continuation
- true
when this frame is continuation frame, false
otherwise.public BinaryFrame(byte[] payload, boolean continuation, boolean fin)
payload
- frame payload.continuation
- true
true
when this frame is continuation frame, false
otherwise.fin
- true
when this frame is last in current partial message batch. Standard
(non-continuous) frames have this bit set to true
.public void respond(TyrusWebSocket socket)
TyrusFrame
respond
in class TyrusFrame
socket
- socket on which the appropriate action will be performed.Copyright © 2012–2020 Oracle Corporation. All rights reserved.