Frame.Type
data, finRsvOp, mask, masked
Constructor | Description |
---|---|
BinaryFrame() |
Modifier and Type | Method | Description |
---|---|---|
Frame.Type |
getType() |
|
BinaryFrame |
setPayload(byte[] buf) |
|
BinaryFrame |
setPayload(java.lang.String payload) |
|
BinaryFrame |
setPayload(java.nio.ByteBuffer buf) |
Set the data payload.
|
assertValid, isControlFrame, isDataFrame, setIsContinuation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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(java.nio.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(java.lang.String payload)
public Frame.Type getType()
getType
in interface Frame
getType
in class WebSocketFrame
Copyright © 1995–2017 Webtide. All rights reserved.