public class ContinuationWebSocketFrame extends WebSocketFrame
| Constructor and Description |
|---|
ContinuationWebSocketFrame()
Creates a new empty continuation frame.
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData,
String aggregatedText)
Creates a new continuation frame with the specified binary data
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
String text)
Creates a new continuation frame with the specified text data
|
ContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.
|
| Modifier and Type | Method and Description |
|---|---|
String |
aggregatedText()
Aggregated text returned by decoder on the final continuation frame of a fragmented text message
|
ContinuationWebSocketFrame |
copy() |
ContinuationWebSocketFrame |
duplicate() |
ContinuationWebSocketFrame |
retain() |
ContinuationWebSocketFrame |
retain(int increment) |
String |
text()
Returns the text data in this frame
|
isFinalFragment, rsv, toStringpublic ContinuationWebSocketFrame()
public ContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData - the content of the frame.public ContinuationWebSocketFrame(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 ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData,
String aggregatedText)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionsbinaryData - the content of the frame.aggregatedText - Aggregated text set by decoder on the final continuation frame of a fragmented
text messagepublic ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
String text)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionstext - text content of the frame.public String text()
public String aggregatedText()
public ContinuationWebSocketFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in class WebSocketFramepublic ContinuationWebSocketFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in class WebSocketFramepublic ContinuationWebSocketFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic ContinuationWebSocketFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFrameCopyright © 2008–2014 The Netty Project. All rights reserved.