public class ClientFrameBuilder extends Object implements IFrameBuilder
EXTENDED_LENGTH_MAX_VALUE
Constructor and Description |
---|
ClientFrameBuilder() |
Modifier and Type | Method and Description |
---|---|
RawFrame |
buildBinaryFrame(byte[] binary)
See RFC6455, section 5.6.
|
RawFrame |
buildCloseFrame(ReasonForClosure reasonForClosure)
See RFC6455, section 7.
|
RawFrame |
buildPingFrame(byte[] binary)
See RFC6455, section 5.5.2.
|
RawFrame |
buildPongFrame(byte[] binary)
See RFC6455, section 5.5.3.
|
RawFrame |
buildTextFrame(String text)
See RFC6455, section 5.6.
|
public RawFrame buildBinaryFrame(byte[] binary)
IFrameBuilder
buildBinaryFrame
in interface IFrameBuilder
binary
- the binary data to create a binary framepublic RawFrame buildCloseFrame(ReasonForClosure reasonForClosure)
IFrameBuilder
buildCloseFrame
in interface IFrameBuilder
reasonForClosure
- the status code and the optional message to send to the remote endpointpublic RawFrame buildPingFrame(byte[] binary)
IFrameBuilder
buildPingFrame
in interface IFrameBuilder
binary
- the payload of the framepublic RawFrame buildPongFrame(byte[] binary)
IFrameBuilder
buildPongFrame
in interface IFrameBuilder
binary
- the payload of the framepublic RawFrame buildTextFrame(String text)
IFrameBuilder
buildTextFrame
in interface IFrameBuilder
text
- the text to create a text frame