java.lang.Object
io.helidon.websocket.WsCloseCodes
Codes to use with
WsSession.close(int, String)
and to receive
in WsListener.onClose(WsSession, int, String)
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Application max value.static final int
Application min value.static final int
Server acting as gateway received an invalid response.static final int
Endpoint received an unsupported frame (e.g.static final int
No close code frame has been received.static final int
Client is leaving (browser tab closing).static final int
Client wanted an extension which server did not negotiate.static final int
Expected close status, received none.static final int
Code to use withWsSession.close(int, String)
to indicate normal close operation.static final int
Endpoint received inconsistent message (e.g.static final int
Endpoint received a malformed frame.static final int
Registered at IANA max value.static final int
Registered at IANA min value.static final int
Reserved for extensions max value.static final int
Reserved for extensions min value.static final int
Reserved for later max value.static final int
Reserved for later min value.static final int
Server/service is restarting.static final int
Transport Layer Security handshake failure.static final int
Endpoint won't process large frame.static final int
Temporary server condition forced blocking client's request.static final int
Internal server error while operating.static final int
Generic code used for situations other than 1003 and 1009. -
Method Summary
-
Field Details
-
NORMAL_CLOSE
public static final int NORMAL_CLOSECode to use withWsSession.close(int, String)
to indicate normal close operation.- See Also:
-
GOING_AWAY
public static final int GOING_AWAYClient is leaving (browser tab closing).- See Also:
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROREndpoint received a malformed frame.- See Also:
-
CANNOT_ACCEPT
public static final int CANNOT_ACCEPTEndpoint received an unsupported frame (e.g. binary-only endpoint received text frame).- See Also:
-
NO_STATUS_CODE
public static final int NO_STATUS_CODEExpected close status, received none.- See Also:
-
CLOSED_ABNORMALLY
public static final int CLOSED_ABNORMALLYNo close code frame has been received.- See Also:
-
NOT_CONSISTENT
public static final int NOT_CONSISTENTEndpoint received inconsistent message (e.g. malformed UTF-8).- See Also:
-
VIOLATED_POLICY
public static final int VIOLATED_POLICYGeneric code used for situations other than 1003 and 1009.- See Also:
-
TOO_BIG
public static final int TOO_BIGEndpoint won't process large frame.- See Also:
-
NO_EXTENSION
public static final int NO_EXTENSIONClient wanted an extension which server did not negotiate.- See Also:
-
UNEXPECTED_CONDITION
public static final int UNEXPECTED_CONDITIONInternal server error while operating.- See Also:
-
SERVICE_RESTART
public static final int SERVICE_RESTARTServer/service is restarting.- See Also:
-
TRY_AGAIN_LATER
public static final int TRY_AGAIN_LATERTemporary server condition forced blocking client's request.- See Also:
-
BAD_GATEWAY
public static final int BAD_GATEWAYServer acting as gateway received an invalid response.- See Also:
-
TLS_HANDSHAKE_FAIL
public static final int TLS_HANDSHAKE_FAILTransport Layer Security handshake failure.- See Also:
-
RESERVED_FOR_LATER_MIN
public static final int RESERVED_FOR_LATER_MINReserved for later min value.- See Also:
-
RESERVED_FOR_LATER_MAX
public static final int RESERVED_FOR_LATER_MAXReserved for later max value.- See Also:
-
RESERVED_FOR_EXTENSIONS_MIN
public static final int RESERVED_FOR_EXTENSIONS_MINReserved for extensions min value.- See Also:
-
RESERVED_FOR_EXTENSIONS_MAX
public static final int RESERVED_FOR_EXTENSIONS_MAXReserved for extensions max value.- See Also:
-
REGISTERED_AT_IANA_MIN
public static final int REGISTERED_AT_IANA_MINRegistered at IANA min value.- See Also:
-
REGISTERED_AT_IANA_MAX
public static final int REGISTERED_AT_IANA_MAXRegistered at IANA max value.- See Also:
-
APPLICATION_MIN
public static final int APPLICATION_MINApplication min value.- See Also:
-
APPLICATION_MAX
public static final int APPLICATION_MAXApplication max value.- See Also:
-