Java org.springframework.web.socket CloseStatus fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.socket CloseStatus fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.socket CloseStatus.

The text is from its open source code.

Field

CloseStatusNORMAL
"1000 indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled."
CloseStatusGOING_AWAY
"1001 indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page."
CloseStatusPROTOCOL_ERROR
"1002 indicates that an endpoint is terminating the connection due to a protocol error."
CloseStatusNOT_ACCEPTABLE
"1003 indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message)."
CloseStatusNO_STATUS_CODE
"1005 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint.
CloseStatusNO_CLOSE_FRAME
"1006 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint.
CloseStatusBAD_DATA
"1007 indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message)."
CloseStatusPOLICY_VIOLATION
"1008 indicates that an endpoint is terminating the connection because it has received a message that violates its policy.
CloseStatusTOO_BIG_TO_PROCESS
"1009 indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process."
CloseStatusREQUIRED_EXTENSION
"1010 indicates that an endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake.
CloseStatusSERVER_ERROR
"1011 indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request."
CloseStatusSERVICE_RESTARTED
"1012 indicates that the service is restarted.
CloseStatusTLS_HANDSHAKE_FAILURE
"1015 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint.
CloseStatusSESSION_NOT_RELIABLE
A status code for use within the framework the indicate a session has become unreliable (e.g.

Constructor

CloseStatus(int code)
Create a new CloseStatus instance.
CloseStatus(int code, @Nullable String reason)
Create a new CloseStatus instance.

Method

booleanequals(@Nullable Object other)
intgetCode()
Return the status code.
StringgetReason()
Return the reason, or null if none.
StringtoString()