Interface Frame
-
- All Known Implementing Classes:
BinaryFrame,CloseFrame,ContinuationFrame,ControlFrame,DataFrame,PingFrame,PongFrame,ReadOnlyDelegatedFrame,TextFrame,WebSocketFrame
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 Deprecated Methods Modifier and Type Method Description byte[]getMask()bytegetOpCode()java.nio.ByteBuffergetPayload()intgetPayloadLength()The original payload length (Buffer.remaining())Frame.TypegetType()booleanhasPayload()booleanisFin()booleanisLast()Deprecated.useisFin()insteadbooleanisMasked()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()
-
isLast
@Deprecated boolean isLast()
Deprecated.useisFin()insteadSame asisFin()- Returns:
- true if final frame.
-
isMasked
boolean isMasked()
-
isRsv1
boolean isRsv1()
-
isRsv2
boolean isRsv2()
-
isRsv3
boolean isRsv3()
-
-