public class WsPacket extends ImPacket
Modifier and Type | Field and Description |
---|---|
static String |
CHARSET_NAME |
static int |
MAX_BODY_LENGTH |
static int |
MAX_LENGTH_OF_BODY
消息体最多为多少
|
static int |
MINIMUM_HEADER_LENGTH |
Modifier and Type | Method and Description |
---|---|
long |
getWsBodyLength() |
String |
getWsBodyText() |
byte[] |
getWsMask() |
Opcode |
getWsOpcode() |
boolean |
isHandShake() |
boolean |
isWsEof() |
boolean |
isWsHasMask() |
static void |
main(String[] args) |
void |
setHandShake(boolean isHandShake) |
void |
setWsBodyLength(long wsBodyLength) |
void |
setWsBodyText(String wsBodyText) |
void |
setWsEof(boolean wsEof) |
void |
setWsHasMask(boolean wsHasMask) |
void |
setWsMask(byte[] wsMask) |
void |
setWsOpcode(Opcode wsOpcode) |
calcHeaderLength, decode4ByteLength, decodeCompress, decodeHasSynSeq, decodeVersion, encode4ByteLength, encodeCompress, encodeEncrypt, encodeHasSynSeq, getBody, getCommand, getStatus, isFromCluster, logstr, setBody, setCommand, setFromCluster, setStatus
clone, getByteCount, getId, getMeta, getPacketListener, getPreEncodedByteBuffer, getRespId, getSynSeq, isBlockSend, isSslEncrypted, setBlockSend, setByteCount, setId, setMeta, setPacketListener, setPreEncodedByteBuffer, setRespId, setSslEncrypted, setSynSeq
public static final int MAX_LENGTH_OF_BODY
public static final int MINIMUM_HEADER_LENGTH
public static final int MAX_BODY_LENGTH
public static final String CHARSET_NAME
public static void main(String[] args)
args
- public long getWsBodyLength()
public String getWsBodyText()
public byte[] getWsMask()
public Opcode getWsOpcode()
public boolean isHandShake()
public boolean isWsEof()
public boolean isWsHasMask()
public void setHandShake(boolean isHandShake)
isHandShake
- the isHandShake to setpublic void setWsBodyLength(long wsBodyLength)
wsBodyLength
- the wsBodyLength to setpublic void setWsBodyText(String wsBodyText)
wsBodyText
- the wsBodyText to setpublic void setWsEof(boolean wsEof)
wsEof
- the wsEof to setpublic void setWsHasMask(boolean wsHasMask)
wsHasMask
- the wsHasMask to setpublic void setWsMask(byte[] wsMask)
wsMask
- the wsMask to setpublic void setWsOpcode(Opcode wsOpcode)
wsOpcode
- the wsOpcode to setCopyright © 2018. All rights reserved.