Frame.Typedata, 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, setIsContinuationcopy, copyHeaders, copyHeaders, equals, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setOpCode, setRsv1, setRsv2, setRsv3, toStringpublic BinaryFrame setPayload(ByteBuffer buf)
WebSocketFrameThe 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 WebSocketFramebuf - the bytebuffer to setpublic BinaryFrame setPayload(byte[] buf)
public BinaryFrame setPayload(String payload)
public Frame.Type getType()
getType in interface FramegetType in class WebSocketFrameCopyright © 1995-2015 Webtide. All Rights Reserved.