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.
|
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, continuationFrame, isBinary, isContinuation, isFinal, isText, textData, textFrame
io.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-8FrameType type()
Copyright © 2015. All Rights Reserved.