public abstract class TyrusFrame extends Frame
Enriched Frame representation.
| Modifier and Type | Class and Description |
|---|---|
static class |
TyrusFrame.FrameType
An Enumeration of frame types.
|
Frame.Builder| Modifier | Constructor and Description |
|---|---|
protected |
TyrusFrame(Frame frame,
TyrusFrame.FrameType frameType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TyrusFrame.FrameType |
getFrameType()
Returns the type of the frame.
|
abstract void |
respond(TyrusWebSocket socket)
Execution part of frame processing.
|
static TyrusFrame |
wrap(Frame frame,
byte inFragmentedType,
java.nio.ByteBuffer remainder)
TyrusFrame factory method. |
builder, builder, getMaskingKey, getOpcode, getPayloadData, getPayloadLength, isControlFrame, isFin, isMask, isRsv1, isRsv2, isRsv3, toStringprotected TyrusFrame(Frame frame, TyrusFrame.FrameType frameType)
frame - enriched frame.frameType - type of the frame.public abstract void respond(TyrusWebSocket socket)
socket - socket on which the appropriate action will be performed.public TyrusFrame.FrameType getFrameType()
TODO: consider moving this to "MonitoredFrame" or something like this;
public static TyrusFrame wrap(Frame frame, byte inFragmentedType, java.nio.ByteBuffer remainder)
TyrusFrame factory method.frame - original plain frame.inFragmentedType - type of fragment (text or binary).remainder - decoding remainder. Used only for partial text frames.Copyright © 2012–2025 Oracle Corporation. All rights reserved.