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)
IFrameBuilderbuildBinaryFrame in interface IFrameBuilderbinary - the binary data to create a binary framepublic RawFrame buildCloseFrame(ReasonForClosure reasonForClosure)
IFrameBuilderbuildCloseFrame in interface IFrameBuilderreasonForClosure - the status code and the optional message to send to the remote endpointpublic RawFrame buildPingFrame(byte[] binary)
IFrameBuilderbuildPingFrame in interface IFrameBuilderbinary - the payload of the framepublic RawFrame buildPongFrame(byte[] binary)
IFrameBuilderbuildPongFrame in interface IFrameBuilderbinary - the payload of the framepublic RawFrame buildTextFrame(String text)
IFrameBuilderbuildTextFrame in interface IFrameBuildertext - the text to create a text frame