Class JettyWebSocketFrame
java.lang.Object
org.eclipse.jetty.websocket.common.JettyWebSocketFrame
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.Frame
Frame.CloseStatus, Frame.Type
-
Constructor Summary
ConstructorsConstructorDescriptionJettyWebSocketFrame
(Frame frame) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbyte
The effective opcode of the frame accounting for the CONTINUATION opcode.byte[]
getMask()
byte
int
The original payload length (Buffer.remaining()
)getType()
boolean
boolean
isFin()
boolean
isMasked()
boolean
isRsv1()
boolean
isRsv2()
boolean
isRsv3()
toString()
-
Constructor Details
-
JettyWebSocketFrame
Deprecated, for removal: This API element is subject to removal in a future version.there is no alternative intended to publicly construct aJettyWebSocketFrame
.
-
-
Method Details
-
getMask
-
getOpCode
-
getPayload
- Specified by:
getPayload
in interfaceFrame
-
getPayloadLength
public int getPayloadLength()Description copied from interface:Frame
The original payload length (Buffer.remaining()
)- Specified by:
getPayloadLength
in interfaceFrame
- Returns:
- the original payload length (
Buffer.remaining()
)
-
getType
-
hasPayload
public boolean hasPayload()- Specified by:
hasPayload
in interfaceFrame
-
isFin
-
isMasked
-
isRsv1
-
isRsv2
-
isRsv3
-
getEffectiveOpCode
public byte getEffectiveOpCode()Description copied from interface:Frame
The effective opcode of the frame accounting for the CONTINUATION opcode. If the frame is a CONTINUATION frame for a TEXT message, this will return TEXT. If the frame is a CONTINUATION frame for a BINARY message, this will return BINARY. Otherwise, this will return the same opcode as the frame.- Specified by:
getEffectiveOpCode
in interfaceFrame
- Returns:
- the effective opcode of the frame.
-
getCloseStatus
- Specified by:
getCloseStatus
in interfaceFrame
-
toString
-
JettyWebSocketFrame
.