public class RFC6455
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RFC6455.RFC6455Exception |
Modifier and Type | Field and Description |
---|---|
static short |
closeGoaway |
static short |
closeNormal |
static short |
closeNotSupportFrame |
static short |
closeProtocol |
static short |
closeServerException |
static short |
closeSizeExceed |
static short |
closeVolatilePolicy |
static byte |
opcodeBinary |
static byte |
opcodeClose |
static byte |
opcodeCont |
static byte |
opcodePing |
static byte |
opcodePong |
static byte |
opcodeText |
Constructor and Description |
---|
RFC6455(int maxMessageSize,
boolean server) |
Modifier and Type | Method and Description |
---|---|
void |
recvClose(byte[] data,
java.util.function.BiConsumer<java.lang.Short,java.lang.String> consumer) |
void |
send(java.lang.Runnable action) |
void |
sendClose(java.lang.Runnable action) |
java.util.Queue<Pair<java.lang.Byte,byte[]>> |
unwrap(java.nio.ByteBuffer in) |
java.nio.ByteBuffer |
wrap(byte opcode,
byte[] data) |
public static final byte opcodeCont
public static final byte opcodeText
public static final byte opcodeBinary
public static final byte opcodeClose
public static final byte opcodePing
public static final byte opcodePong
public static final short closeNormal
public static final short closeGoaway
public static final short closeProtocol
public static final short closeNotSupportFrame
public static final short closeVolatilePolicy
public static final short closeSizeExceed
public static final short closeServerException
public java.util.Queue<Pair<java.lang.Byte,byte[]>> unwrap(java.nio.ByteBuffer in) throws RFC6455.RFC6455Exception
RFC6455.RFC6455Exception
public java.nio.ByteBuffer wrap(byte opcode, byte[] data)
public void send(java.lang.Runnable action)
public void sendClose(java.lang.Runnable action)
public void recvClose(byte[] data, java.util.function.BiConsumer<java.lang.Short,java.lang.String> consumer)