Package io.undertow.websockets.core
Class CloseMessage
- java.lang.Object
-
- io.undertow.websockets.core.CloseMessage
-
public class CloseMessage extends java.lang.ObjectA close message- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static intGOING_AWAYstatic intMISSING_EXTENSIONSstatic intMSG_CONTAINS_INVALID_DATAstatic intMSG_TOO_BIGstatic intMSG_VIOLATES_POLICYstatic intNORMAL_CLOSUREstatic intPROTOCOL_ERRORstatic intUNEXPECTED_ERRORstatic intWRONG_CODE
-
Constructor Summary
Constructors Constructor Description CloseMessage(int code, java.lang.String reason)CloseMessage(java.nio.ByteBuffer buffer)CloseMessage(java.nio.ByteBuffer[] buffers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetReason()static booleanisValid(int code)Returntrueif the provided code is a valid close status code.java.nio.ByteBuffertoByteBuffer()
-
-
-
Field Detail
-
NORMAL_CLOSURE
public static final int NORMAL_CLOSURE
- See Also:
- Constant Field Values
-
GOING_AWAY
public static final int GOING_AWAY
- See Also:
- Constant Field Values
-
WRONG_CODE
public static final int WRONG_CODE
- See Also:
- Constant Field Values
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR
- See Also:
- Constant Field Values
-
MSG_CONTAINS_INVALID_DATA
public static final int MSG_CONTAINS_INVALID_DATA
- See Also:
- Constant Field Values
-
MSG_VIOLATES_POLICY
public static final int MSG_VIOLATES_POLICY
- See Also:
- Constant Field Values
-
MSG_TOO_BIG
public static final int MSG_TOO_BIG
- See Also:
- Constant Field Values
-
MISSING_EXTENSIONS
public static final int MISSING_EXTENSIONS
- See Also:
- Constant Field Values
-
UNEXPECTED_ERROR
public static final int UNEXPECTED_ERROR
- See Also:
- Constant Field Values
-
-