public static enum CloseReason.Code extends Enum<CloseReason.Code>
| Enum Constant and Description |
|---|
CANNOT_ACCEPT |
CLOSED_ABNORMALLY |
GOING_AWAY |
NO_EXTENSION |
NO_STATUS_CODE |
NORMAL_CLOSURE |
NOT_CONSISTENT |
PROTOCOL_ERROR |
RESERVED |
TLS_HANDSHAKE_FAILURE |
TOO_BIG |
UNEXPECTED_CONDITION |
VIOLATED_POLICY |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Return the code number of this status code.
|
static CloseReason.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseReason.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseReason.Code NORMAL_CLOSURE
public static final CloseReason.Code GOING_AWAY
public static final CloseReason.Code PROTOCOL_ERROR
public static final CloseReason.Code CANNOT_ACCEPT
public static final CloseReason.Code RESERVED
public static final CloseReason.Code NO_STATUS_CODE
public static final CloseReason.Code CLOSED_ABNORMALLY
public static final CloseReason.Code NOT_CONSISTENT
public static final CloseReason.Code VIOLATED_POLICY
public static final CloseReason.Code TOO_BIG
public static final CloseReason.Code NO_EXTENSION
public static final CloseReason.Code UNEXPECTED_CONDITION
public static final CloseReason.Code TLS_HANDSHAKE_FAILURE
public static CloseReason.Code[] values()
for (CloseReason.Code c : CloseReason.Code.values()) System.out.println(c);
public static CloseReason.Code 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 © 2012 Oracle and/or its affiliates. All rights reserved.