|
||||||||||
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.ContinuationWebSocketFrame
public class ContinuationWebSocketFrame
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 | |
---|---|
ContinuationWebSocketFrame()
Creates a new empty continuation frame. |
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
org.jboss.netty.buffer.ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data |
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
org.jboss.netty.buffer.ChannelBuffer 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(org.jboss.netty.buffer.ChannelBuffer binaryData)
Creates a new continuation frame with the specified binary data. |
Method Summary | |
---|---|
String |
getAggregatedText()
Aggregated text returned by decoder on the final continuation frame of a fragmented text message |
String |
getText()
Returns the text data in this frame |
void |
setAggregatedText(String aggregatedText)
|
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 ContinuationWebSocketFrame()
public ContinuationWebSocketFrame(org.jboss.netty.buffer.ChannelBuffer binaryData)
binaryData
- the content of the frame.public ContinuationWebSocketFrame(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.public ContinuationWebSocketFrame(boolean finalFragment, int rsv, org.jboss.netty.buffer.ChannelBuffer 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.Method Detail |
---|
public String getText()
public void setText(String text)
text
- text to storepublic String toString()
toString
in class Object
public String getAggregatedText()
public void setAggregatedText(String aggregatedText)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |