TODO: - masking (isMask is currently ignored) - validation - payloadLength is limited to int
| Modifier and Type | Class and Description |
|---|---|
| public static class | Frame.
Frame builder. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final Integer | |
| private final byte | |
| private final byte[] | |
| private final long | |
| private final boolean | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Frame. | |
| public static Frame. | |
| public Integer | Returns: masking key (32 bit value) ornull when the frame should not be masked.Get masking key. |
| public byte | |
| public byte[] | |
| public long | |
| public boolean | Returns: true when this frame is control (close, ping, pong) frame, false otherwise.Get information about frame type. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String |
| controlFrame | back to summary |
|---|---|
| private final boolean controlFrame | |
| fin | back to summary |
|---|---|
| private final boolean fin | |
| mask | back to summary |
|---|---|
| private final boolean mask | |
| maskingKey | back to summary |
|---|---|
| private final Integer maskingKey | |
| opcode | back to summary |
|---|---|
| private final byte opcode | |
| payloadData | back to summary |
|---|---|
| private final byte[] payloadData | |
| payloadLength | back to summary |
|---|---|
| private final long payloadLength | |
| rsv1 | back to summary |
|---|---|
| private final boolean rsv1 | |
| rsv2 | back to summary |
|---|---|
| private final boolean rsv2 | |
| rsv3 | back to summary |
|---|---|
| private final boolean rsv3 | |
| Frame | back to summary |
|---|---|
| protected Frame(Frame frame) Copy constructor. Note this is shallow copy. Payload is *not* copied to new array.
| |
| Frame | back to summary |
|---|---|
| private Frame(boolean fin, boolean rsv1, boolean rsv2, boolean rsv3, boolean mask, byte opcode, long payloadLength, Integer maskingKey, byte[] payloadData) | |
| builder | back to summary |
|---|---|
| public static Frame. Create new | |
| builder | back to summary |
|---|---|
| public static Frame. Create new | |
| getMaskingKey | back to summary |
|---|---|
| public Integer getMaskingKey() Get masking key.
| |
| getOpcode | back to summary |
|---|---|
| public byte getOpcode() Get opcode.
| |
| getPayloadData | back to summary |
|---|---|
| public byte[] getPayloadData() Get payload data.
Changes done to returned array won't be propagated to current
| |
| getPayloadLength | back to summary |
|---|---|
| public long getPayloadLength() Get payload length.
| |
| isControlFrame | back to summary |
|---|---|
| public boolean isControlFrame() Get information about frame type.
| |
| isFin | back to summary |
|---|---|
| public boolean isFin() Get FIN value.
| |
| isMask | back to summary |
|---|---|
| public boolean isMask() Currently not used.
| |
| isRsv1 | back to summary |
|---|---|
| public boolean isRsv1() GET RSV1 value.
| |
| isRsv2 | back to summary |
|---|---|
| public boolean isRsv2() GET RSV2 value.
| |
| isRsv3 | back to summary |
|---|---|
| public boolean isRsv3() GET RSV3 value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private Integer | |
| private byte | |
| private byte[] | |
| private long | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Frame | |
| public Frame. | |
| public Frame. | |
| public Frame. | |
| public Frame. | |
| public Frame. | |
| public Frame. | Returns: updatedBuilder instance.payload length. Must not be greater than payloadData.length. payloadLength)Set payload length. |
| public Frame. | |
| public Frame. | |
| public Frame. |
| fin | back to summary |
|---|---|
| private boolean fin | |
| mask | back to summary |
|---|---|
| private boolean mask | |
| maskingKey | back to summary |
|---|---|
| private Integer maskingKey | |
| opcode | back to summary |
|---|---|
| private byte opcode | |
| payloadData | back to summary |
|---|---|
| private byte[] payloadData | |
| payloadLength | back to summary |
|---|---|
| private long payloadLength | |
| rsv1 | back to summary |
|---|---|
| private boolean rsv1 | |
| rsv2 | back to summary |
|---|---|
| private boolean rsv2 | |
| rsv3 | back to summary |
|---|---|
| private boolean rsv3 | |
| Builder | back to summary |
|---|---|
| public Builder() Constructor. | |
| Builder | back to summary |
|---|---|
| public Builder(Frame frame) Constructor.
| |
| build | back to summary |
|---|---|
| public Frame build() Build new frame.
| |
| fin | back to summary |
|---|---|
| public Frame. Set FIN flag. | |
| mask | back to summary |
|---|---|
| public Frame. Currently not used. | |
| maskingKey | back to summary |
|---|---|
| public Frame. Set masking key. Default value is | |
| opcode | back to summary |
|---|---|
| public Frame. Set opcode. | |
| payloadData | back to summary |
|---|---|
| public Frame. Set payload data.
| |
| payloadLength | back to summary |
|---|---|
| public Frame. Set payload length.
Payload length is automatically set to payloadData length when
| |
| rsv1 | back to summary |
|---|---|
| public Frame. Set RSV1 flag. | |
| rsv2 | back to summary |
|---|---|
| public Frame. Set RSV2 flag. | |
| rsv3 | back to summary |
|---|---|
| public Frame. Set RSV3 flag. | |