public interface WebSocketFrameInternal extends WebSocketFrame
factory| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
getBinaryData()
Returns the content of this frame as-is, with no UTF-8 decoding.
|
int |
length() |
void |
setBinaryData(io.netty.buffer.ByteBuf binaryData)
Sets the type and the content of this frame.
|
void |
setTextData(String textData)
Set the type of the content of this frame and populate it with the given content
|
FrameType |
type() |
binaryData, binaryFrame, closeReason, closeStatusCode, continuationFrame, isBinary, isClose, isContinuation, isFinal, isText, pingFrame, pongFrame, textData, textFrameio.netty.buffer.ByteBuf getBinaryData()
void setBinaryData(io.netty.buffer.ByteBuf binaryData)
binaryData - the content of the frame. If (type & 0x80 == 0),
it must be encoded in UTF-8.IllegalArgumentException - if If (type & 0x80 == 0) and the data is not encoded
in UTF-8void setTextData(String textData)
textData - the content of the frame. Must be valid UTF-8int length()
FrameType type()
Copyright © 2020. All rights reserved.