Package io.undertow.websockets.core
Class CloseMessage
java.lang.Object
io.undertow.websockets.core.CloseMessage
A close message
- Author:
- Stuart Douglas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionCloseMessage
(int code, String reason) CloseMessage
(ByteBuffer buffer) CloseMessage
(ByteBuffer[] buffers) -
Method Summary
-
Field Details
-
NORMAL_CLOSURE
public static final int NORMAL_CLOSURE- See Also:
-
GOING_AWAY
public static final int GOING_AWAY- See Also:
-
WRONG_CODE
public static final int WRONG_CODE- See Also:
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR- See Also:
-
MSG_CONTAINS_INVALID_DATA
public static final int MSG_CONTAINS_INVALID_DATA- See Also:
-
MSG_VIOLATES_POLICY
public static final int MSG_VIOLATES_POLICY- See Also:
-
MSG_TOO_BIG
public static final int MSG_TOO_BIG- See Also:
-
MISSING_EXTENSIONS
public static final int MISSING_EXTENSIONS- See Also:
-
UNEXPECTED_ERROR
public static final int UNEXPECTED_ERROR- See Also:
-
-
Constructor Details
-
CloseMessage
-
CloseMessage
-
CloseMessage
-
-
Method Details
-
getReason
-
getCode
public int getCode() -
toByteBuffer
-
isValid
public static boolean isValid(int code) Returntrue
if the provided code is a valid close status code.
-