public class ContinuationWebSocketFrame extends WebSocketFrame
Constructor and Description |
---|
ContinuationWebSocketFrame()
Creates a new empty continuation frame.
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer 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(ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data.
|
Modifier and Type | Method and Description |
---|---|
String |
getAggregatedText()
Aggregated text returned by decoder on the final continuation frame of a fragmented text message
|
String |
getText()
Returns the text data in this frame
|
void |
setAggregatedText(String aggregatedText) |
void |
setText(String text)
Sets the string for this frame
|
String |
toString() |
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsv
public ContinuationWebSocketFrame()
public ContinuationWebSocketFrame(ChannelBuffer binaryData)
binaryData
- the content of the frame.public ContinuationWebSocketFrame(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.public ContinuationWebSocketFrame(boolean finalFragment, int rsv, ChannelBuffer 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 getText()
public void setText(String text)
text
- text to storepublic String getAggregatedText()
public void setAggregatedText(String aggregatedText)
Copyright © 2008-2013 The Netty Project. All Rights Reserved.