public enum WebSocketCloseStatus extends Enum<WebSocketCloseStatus>
| Enum Constant and Description |
|---|
ABNORMAL_CLOSURE |
BAD_GATEWAY |
GOING_AWAY |
INTERNAL_ERROR |
INVALID_PAYLOAD |
MANDATORY_EXTENSION |
MESSAGE_TOO_BIG |
NO_STATUS_RECEIVED |
NORMAL |
POLICY_VIOLATION |
PROTOCOL_ERROR |
SERVICE_RESTART |
TRY_AGAIN_LATER |
UNSUPPORTED_DATA |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static WebSocketCloseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketCloseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketCloseStatus NORMAL
public static final WebSocketCloseStatus GOING_AWAY
public static final WebSocketCloseStatus PROTOCOL_ERROR
public static final WebSocketCloseStatus UNSUPPORTED_DATA
public static final WebSocketCloseStatus NO_STATUS_RECEIVED
public static final WebSocketCloseStatus ABNORMAL_CLOSURE
public static final WebSocketCloseStatus INVALID_PAYLOAD
public static final WebSocketCloseStatus POLICY_VIOLATION
public static final WebSocketCloseStatus MESSAGE_TOO_BIG
public static final WebSocketCloseStatus MANDATORY_EXTENSION
public static final WebSocketCloseStatus INTERNAL_ERROR
public static final WebSocketCloseStatus SERVICE_RESTART
public static final WebSocketCloseStatus TRY_AGAIN_LATER
public static final WebSocketCloseStatus BAD_GATEWAY
public static WebSocketCloseStatus[] values()
for (WebSocketCloseStatus c : WebSocketCloseStatus.values()) System.out.println(c);
public static WebSocketCloseStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.