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, toString
public 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.ByteBufHolder
copy
in class WebSocketFrame
public ContinuationWebSocketFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class WebSocketFrame
public ContinuationWebSocketFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public ContinuationWebSocketFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
Copyright © 2008–2013 The Netty Project. All rights reserved.