| Access | Constructor and Description |
|---|---|
| public | TextWebSocketFrame(BufferAllocator
BufferAllocator to use for allocating data.String to put in the frame. text)Creates a new text frame with the specified text string. |
| public | TextWebSocketFrame(Buffer
the content of the frame. binaryData)Creates a new text frame with the specified binary data. |
| public | TextWebSocketFrame(BufferAllocator
BufferAllocator to use for allocating data.flag indicating if this frame is the final fragment finalFragment, int reserved bits used for protocol extensions rsv, String String to put in the frame. text)Creates a new text frame with the specified text string. |
| private | |
| public | TextWebSocketFrame(boolean
flag indicating if this frame is the final fragment finalFragment, int reserved bits used for protocol extensions rsv, Buffer the content of the frame. binaryData)Creates a new text frame with the specified binary data and the final fragment flag. |
| Modifier and Type | Method and Description |
|---|---|
| private static Buffer | |
| protected WebSocketFrame | receive(Buffer
The buf)Buffer that is received by the recipient,
and needs to be wrapped in a new BufferHolder instance.Implements abstract io. BufferHolder is received by the recipient.
|
| public String |
| TextWebSocketFrame | back to summary |
|---|---|
| public TextWebSocketFrame(BufferAllocator allocator, String text) Creates a new text frame with the specified text string. The final fragment flag is set to true.
| |
| TextWebSocketFrame | back to summary |
|---|---|
| public TextWebSocketFrame(Buffer binaryData) Creates a new text frame with the specified binary data. The final fragment flag is set to true.
| |
| TextWebSocketFrame | back to summary |
|---|---|
| public TextWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv, String text) Creates a new text frame with the specified text string. The final fragment flag is set to true.
| |
| TextWebSocketFrame | back to summary |
|---|---|
| private TextWebSocketFrame(TextWebSocketFrame copyFrom, Buffer data) | |
| TextWebSocketFrame | back to summary |
|---|---|
| public TextWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData) Creates a new text frame with the specified binary data and the final fragment flag.
| |
| fromText | back to summary |
|---|---|
| private static Buffer fromText(BufferAllocator allocator, String text) | |
| receive | back to summary |
|---|---|
| protected WebSocketFrame receive(Buffer buf) Implements abstract io. Doc from io. Called when a sent
| |
| text | back to summary |
|---|---|
| public String text() Returns the text data in this frame. | |