|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.providers.netty.netty4.WebSocketFrame
com.ning.http.client.providers.netty.netty4.TextWebSocketFrame
public class TextWebSocketFrame
Web Socket text frame with assumed UTF-8 encoding
| Constructor Summary | |
|---|---|
TextWebSocketFrame()
Creates a new empty text frame. |
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
org.jboss.netty.buffer.ChannelBuffer binaryData)
Creates a new text frame with the specified binary data. |
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
String text)
Creates a new text frame with the specified text string. |
|
TextWebSocketFrame(org.jboss.netty.buffer.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. |
|
| Method Summary | |
|---|---|
String |
getText()
Returns the text data in this frame |
void |
setText(String text)
Sets the string for this frame |
String |
toString()
|
| Methods inherited from class com.ning.http.client.providers.netty.netty4.WebSocketFrame |
|---|
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsv |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextWebSocketFrame()
public TextWebSocketFrame(String text)
text - String to put in the framepublic TextWebSocketFrame(org.jboss.netty.buffer.ChannelBuffer binaryData)
binaryData - the content of the frame. Must be UTF-8 encoded
public TextWebSocketFrame(boolean finalFragment,
int rsv,
String text)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionstext - String to put in the frame
public TextWebSocketFrame(boolean finalFragment,
int rsv,
org.jboss.netty.buffer.ChannelBuffer binaryData)
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 Detail |
|---|
public String getText()
public void setText(String text)
text - text to storepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||