public class TextWebSocketFrame extends WebSocketFrame
| Constructor and Description |
|---|
TextWebSocketFrame()
Creates a new empty text frame.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
String text)
Creates a new text frame with the specified text string.
|
TextWebSocketFrame(ChannelBuffer binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(String text)
Creates a new text frame with the specified text string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Returns the text data in this frame
|
void |
setText(String text)
Sets the string for this frame
|
String |
toString() |
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsvpublic TextWebSocketFrame()
public TextWebSocketFrame(String text)
text - String to put in the framepublic TextWebSocketFrame(ChannelBuffer binaryData)
binaryData - the content of the frame. Must be UTF-8 encodedpublic TextWebSocketFrame(boolean finalFragment,
int rsv,
String text)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionstext - String to put in the framepublic TextWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer binaryData)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionsbinaryData - the content of the frame. Must be UTF-8 encodedCopyright © 2008-2015 The Netty Project. All Rights Reserved.