public class TextWebSocketFrame extends WebSocketFrame
| Constructor and Description |
|---|
TextWebSocketFrame()
Creates a new empty text frame.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf 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(io.netty.buffer.ByteBuf 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 |
|---|---|
TextWebSocketFrame |
copy() |
TextWebSocketFrame |
duplicate() |
TextWebSocketFrame |
replace(io.netty.buffer.ByteBuf content) |
TextWebSocketFrame |
retain() |
TextWebSocketFrame |
retain(int increment) |
TextWebSocketFrame |
retainedDuplicate() |
String |
text()
Returns the text data in this frame
|
TextWebSocketFrame |
touch() |
TextWebSocketFrame |
touch(Object hint) |
isFinalFragment, rsv, toStringpublic TextWebSocketFrame()
public TextWebSocketFrame(String text)
text - String to put in the framepublic TextWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData - the content of the frame.public 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,
io.netty.buffer.ByteBuf binaryData)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionsbinaryData - the content of the frame.public String text()
public TextWebSocketFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in class WebSocketFramepublic TextWebSocketFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in class WebSocketFramepublic TextWebSocketFrame retainedDuplicate()
retainedDuplicate in interface io.netty.buffer.ByteBufHolderretainedDuplicate in class WebSocketFramepublic TextWebSocketFrame replace(io.netty.buffer.ByteBuf content)
replace in interface io.netty.buffer.ByteBufHolderreplace in class WebSocketFramepublic TextWebSocketFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic TextWebSocketFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic TextWebSocketFrame touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedtouch in class WebSocketFramepublic TextWebSocketFrame touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedtouch in class WebSocketFrameCopyright © 2008–2017 The Netty Project. All rights reserved.