|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Frame
The Frame interface represents a frame as defined in
RFC 6455. A frame is a very lightweight envelope used to send
control information and either text or binary user data. Typically
a frame will represent a single message however, it is possible
to fragment a single frame up in to several frames. A fragmented
frame has a specific FrameType indicating that it
is a continuation frame.
DataFrame| Method Summary | |
|---|---|
byte[] |
getBinary()
This returns the binary payload that is to be sent with the frame. |
Frame |
getFrame(FrameType type)
This method is used to convert from one frame type to another. |
String |
getText()
This returns the text payload that is to be sent with the frame. |
FrameType |
getType()
This is used to determine the type of frame. |
boolean |
isFinal()
This is used to determine if the frame is the final frame in a sequence of fragments or a whole frame. |
| Method Detail |
|---|
boolean isFinal()
byte[] getBinary()
String getText()
Frame getFrame(FrameType type)
type - this is the frame type to convert to
FrameType getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||