Class JettyWebSocketFrame
java.lang.Object
org.eclipse.jetty.websocket.common.JettyWebSocketFrame
- All Implemented Interfaces:
Frame
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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 TypeMethodDescriptionbyteThe effective opcode of the frame accounting for the CONTINUATION opcode.byte[]getMask()byteintThe original payload length (Buffer.remaining())getType()booleanbooleanisFin()booleanisMasked()booleanisRsv1()booleanisRsv2()booleanisRsv3()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:
getPayloadin interfaceFrame
-
getPayloadLength
public int getPayloadLength()Description copied from interface:FrameThe original payload length (Buffer.remaining())- Specified by:
getPayloadLengthin interfaceFrame- Returns:
- the original payload length (
Buffer.remaining())
-
getType
-
hasPayload
public boolean hasPayload()- Specified by:
hasPayloadin interfaceFrame
-
isFin
-
isMasked
-
isRsv1
-
isRsv2
-
isRsv3
-
getEffectiveOpCode
public byte getEffectiveOpCode()Description copied from interface:FrameThe 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:
getEffectiveOpCodein interfaceFrame- Returns:
- the effective opcode of the frame.
-
getCloseStatus
- Specified by:
getCloseStatusin interfaceFrame
-
toString
-
JettyWebSocketFrame.