Package org.eclipse.jetty.websocket.api
Interface Frame
-
- All Known Implementing Classes:
JettyWebSocketFrame
public interface FrameAn immutable websocket frame.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFrame.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getMask()bytegetOpCode()java.nio.ByteBuffergetPayload()intgetPayloadLength()The original payload length (Buffer.remaining())Frame.TypegetType()booleanhasPayload()booleanisFin()booleanisMasked()booleanisRsv1()booleanisRsv2()booleanisRsv3()
-
-
-
Method Detail
-
getMask
byte[] getMask()
-
getOpCode
byte getOpCode()
-
getPayload
java.nio.ByteBuffer getPayload()
-
getPayloadLength
int getPayloadLength()
The original payload length (Buffer.remaining())- Returns:
- the original payload length (
Buffer.remaining())
-
getType
Frame.Type getType()
-
hasPayload
boolean hasPayload()
-
isFin
boolean isFin()
-
isMasked
boolean isMasked()
-
isRsv1
boolean isRsv1()
-
isRsv2
boolean isRsv2()
-
isRsv3
boolean isRsv3()
-
-