java.lang.Object
org.glassfish.grizzly.websockets.DataFrame
- Direct Known Subclasses:
ClosingFrame
In memory representation of a websocket frame.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()getType()static booleanbooleanisLast()voidvoidsetLast(boolean last) voidsetPayload(byte[] bytes) final voidsetPayload(String payload) voidtoStream(OutputStream os) toString()
-
Constructor Details
-
DataFrame
-
DataFrame
-
DataFrame
-
DataFrame
-
DataFrame
-
-
Method Details
-
isDataFrame
-
getType
-
getTextPayload
-
setPayload
-
setPayload
public void setPayload(byte[] bytes) -
getBytes
public byte[] getBytes() -
toStream
- Throws:
IOException
-
respond
-
toString
-
isLast
public boolean isLast() -
setLast
public void setLast(boolean last)
-