Class ContinuationWebSocketFrame
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame
-
- org.jboss.netty.handler.codec.http.websocketx.ContinuationWebSocketFrame
-
public class ContinuationWebSocketFrame extends WebSocketFrame
Web Socket continuation frame containing continuation text or binary data. This is used for fragmented messages where the contents of a messages is contained more than 1 frame.
-
-
Constructor Summary
Constructors Constructor Description ContinuationWebSocketFrame()
Creates a new empty continuation frame.ContinuationWebSocketFrame(boolean finalFragment, int rsv, java.lang.String text)
Creates a new continuation frame with the specified text dataContinuationWebSocketFrame(boolean finalFragment, int rsv, ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary dataContinuationWebSocketFrame(ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Returns the text data in this framevoid
setText(java.lang.String text)
Sets the string for this framejava.lang.String
toString()
-
Methods inherited from class org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsv
-
-
-
-
Constructor Detail
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame()
Creates a new empty continuation frame.
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame(ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data. The final fragment flag is set to true.- Parameters:
binaryData
- the content of the frame.
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame(boolean finalFragment, int rsv, ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data- Parameters:
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame(boolean finalFragment, int rsv, java.lang.String text)
Creates a new continuation frame with the specified text data- Parameters:
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionstext
- text content of the frame.
-
-