public class WebSocketFrame extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
WebSocketFrame() |
WebSocketFrame(boolean fin,
boolean rsv1,
boolean rsv2,
boolean rsv3,
int opcode,
boolean isMasked,
byte[] maskingKey,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getMaskKey() |
int |
getOpcode() |
Exchange |
getOriginalExchange() |
byte[] |
getPayload() |
long |
getPayloadLength() |
boolean |
isMasked() |
void |
setMasked(boolean masked) |
void |
setMaskKey(byte[] maskKey) |
void |
setOpcode(int opcode) |
void |
setOriginalExchange(Exchange originalExchange) |
void |
setPayload(byte[] payload) |
void |
setPayloadLength(long payloadLength) |
byte[] |
toBytes() |
String |
toString() |
String |
toStringHex() |
int |
tryRead(byte[] buffer,
int offset,
int length) |
void |
write(OutputStream out) |
public WebSocketFrame()
public WebSocketFrame(boolean fin,
boolean rsv1,
boolean rsv2,
boolean rsv3,
int opcode,
boolean isMasked,
byte[] maskingKey,
byte[] payload)
public void write(OutputStream out) throws IOException
IOExceptionpublic int getOpcode()
public void setOpcode(int opcode)
public boolean isMasked()
public void setMasked(boolean masked)
public long getPayloadLength()
public void setPayloadLength(long payloadLength)
public byte[] getMaskKey()
public void setMaskKey(byte[] maskKey)
public byte[] getPayload()
public void setPayload(byte[] payload)
public int tryRead(byte[] buffer,
int offset,
int length)
buffer - offset - length - public String toStringHex()
public byte[] toBytes()
throws IOException
IOExceptionpublic Exchange getOriginalExchange()
public void setOriginalExchange(Exchange originalExchange)
Copyright © 2021. All Rights Reserved.