Frame.Type
data, finRsvOp, mask, masked
Constructor and Description |
---|
BinaryFrame() |
Modifier and Type | Method and Description |
---|---|
Frame.Type |
getType() |
BinaryFrame |
setPayload(byte[] buf) |
BinaryFrame |
setPayload(ByteBuffer buf)
Set the data payload.
|
BinaryFrame |
setPayload(String payload) |
assertValid, isControlFrame, isDataFrame, setIsContinuation
copy, copyHeaders, copyHeaders, equals, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setOpCode, setRsv1, setRsv2, setRsv3, toString
public BinaryFrame setPayload(ByteBuffer buf)
WebSocketFrame
The provided buffer will be used as is, no copying of bytes performed.
The provided buffer should be flipped and ready to READ from.
setPayload
in class WebSocketFrame
buf
- the bytebuffer to setpublic BinaryFrame setPayload(byte[] buf)
public BinaryFrame setPayload(String payload)
public Frame.Type getType()
getType
in interface Frame
getType
in class WebSocketFrame
Copyright © 1995-2015 Webtide. All Rights Reserved.