Package org.glassfish.tyrus.core.frame
Class BinaryFrame
- java.lang.Object
-
- org.glassfish.tyrus.core.frame.Frame
-
- org.glassfish.tyrus.core.frame.TyrusFrame
-
- org.glassfish.tyrus.core.frame.BinaryFrame
-
public class BinaryFrame extends TyrusFrame
Binary frame representation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.tyrus.core.frame.TyrusFrame
TyrusFrame.FrameType
-
Nested classes/interfaces inherited from class org.glassfish.tyrus.core.frame.Frame
Frame.Builder
-
-
Constructor Summary
Constructors Constructor Description BinaryFrame(byte[] payload, boolean continuation, boolean fin)Constructor.BinaryFrame(Frame frame)Constructor.BinaryFrame(Frame frame, boolean continuation)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrespond(TyrusWebSocket socket)Execution part of frame processing.-
Methods inherited from class org.glassfish.tyrus.core.frame.TyrusFrame
getFrameType, wrap
-
Methods inherited from class org.glassfish.tyrus.core.frame.Frame
builder, builder, getMaskingKey, getOpcode, getPayloadData, getPayloadLength, isControlFrame, isFin, isMask, isRsv1, isRsv2, isRsv3, toString
-
-
-
-
Constructor Detail
-
BinaryFrame
public BinaryFrame(Frame frame)
Constructor.- Parameters:
frame- original (binary) frame.
-
BinaryFrame
public BinaryFrame(Frame frame, boolean continuation)
Constructor.- Parameters:
frame- original (binary) frame.continuation-truewhen this frame is continuation frame,falseotherwise.
-
BinaryFrame
public BinaryFrame(byte[] payload, boolean continuation, boolean fin)Constructor.- Parameters:
payload- frame payload.continuation-truetruewhen this frame is continuation frame,falseotherwise.fin-truewhen this frame is last in current partial message batch. Standard (non-continuous) frames have this bit set totrue.
-
-
Method Detail
-
respond
public void respond(TyrusWebSocket socket)
Description copied from class:TyrusFrameExecution part of frame processing.- Specified by:
respondin classTyrusFrame- Parameters:
socket- socket on which the appropriate action will be performed.
-
-