public class ErrorFrameCodec extends Object
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_ERROR |
static int |
CANCELED |
static int |
CONNECTION_CLOSE |
static int |
CONNECTION_ERROR |
static int |
INVALID |
static int |
INVALID_SETUP |
static int |
MAX_USER_ALLOWED_ERROR_CODE |
static int |
MIN_USER_ALLOWED_ERROR_CODE |
static int |
REJECTED |
static int |
REJECTED_RESUME |
static int |
REJECTED_SETUP |
static int |
UNSUPPORTED_SETUP |
Constructor and Description |
---|
ErrorFrameCodec() |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
data(ByteBuf byteBuf) |
static String |
dataUtf8(ByteBuf byteBuf) |
static ByteBuf |
encode(ByteBufAllocator allocator,
int streamId,
Throwable t) |
static ByteBuf |
encode(ByteBufAllocator allocator,
int streamId,
Throwable t,
ByteBuf data) |
static int |
errorCode(ByteBuf byteBuf) |
public static final int INVALID_SETUP
public static final int UNSUPPORTED_SETUP
public static final int REJECTED_SETUP
public static final int REJECTED_RESUME
public static final int CONNECTION_ERROR
public static final int CONNECTION_CLOSE
public static final int APPLICATION_ERROR
public static final int REJECTED
public static final int CANCELED
public static final int INVALID
public static final int MIN_USER_ALLOWED_ERROR_CODE
public static final int MAX_USER_ALLOWED_ERROR_CODE
public static ByteBuf encode(ByteBufAllocator allocator, int streamId, Throwable t, ByteBuf data)
public static ByteBuf encode(ByteBufAllocator allocator, int streamId, Throwable t)
public static int errorCode(ByteBuf byteBuf)