Class WebSocketFrame
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame
-
- Direct Known Subclasses:
BinaryWebSocketFrame,CloseWebSocketFrame,ContinuationWebSocketFrame,PingWebSocketFrame,PongWebSocketFrame,TextWebSocketFrame
public abstract class WebSocketFrame extends Object
Base class for web socket frames
-
-
Constructor Summary
Constructors Constructor Description WebSocketFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelBuffergetBinaryData()Returns binary dataintgetRsv()Bits used for extensions to the standard.booleanisFinalFragment()Flag to indicate if this frame is the final fragment in a message.voidsetBinaryData(ChannelBuffer binaryData)Sets the binary data for this framevoidsetFinalFragment(boolean finalFragment)voidsetRsv(int rsv)
-
-
-
Method Detail
-
getBinaryData
public ChannelBuffer getBinaryData()
Returns binary data
-
setBinaryData
public void setBinaryData(ChannelBuffer binaryData)
Sets the binary data for this frame
-
isFinalFragment
public boolean isFinalFragment()
Flag to indicate if this frame is the final fragment in a message. The first fragment (frame) may also be the final fragment.
-
setFinalFragment
public void setFinalFragment(boolean finalFragment)
-
getRsv
public int getRsv()
Bits used for extensions to the standard.
-
setRsv
public void setRsv(int rsv)
-
-