Class TextWebSocketFrame
java.lang.Object
org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame
org.jboss.netty.handler.codec.http.websocketx.TextWebSocketFrame
Web Socket text frame with assumed UTF-8 encoding
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty text frame.TextWebSocketFrame
(boolean finalFragment, int rsv, String text) Creates a new text frame with the specified text string.TextWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new text frame with the specified binary data.TextWebSocketFrame
(String text) Creates a new text frame with the specified text string.TextWebSocketFrame
(ChannelBuffer binaryData) Creates a new text frame with the specified binary data. -
Method Summary
Methods inherited from class org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsv
-
Constructor Details
-
TextWebSocketFrame
public TextWebSocketFrame()Creates a new empty text frame. -
TextWebSocketFrame
Creates a new text frame with the specified text string. The final fragment flag is set to true.- Parameters:
text
- String to put in the frame
-
TextWebSocketFrame
Creates a new text frame with the specified binary data. The final fragment flag is set to true.- Parameters:
binaryData
- the content of the frame. Must be UTF-8 encoded
-
TextWebSocketFrame
Creates a new text frame with the specified text string. The final fragment flag is set to true.- Parameters:
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionstext
- String to put in the frame
-
TextWebSocketFrame
Creates a new text frame with the specified binary data. The final fragment flag is set to true.- Parameters:
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame. Must be UTF-8 encoded
-
-
Method Details