public enum ConnectionCloseCode extends Enum<ConnectionCloseCode>
Enum Constant and Description |
---|
CONNECTION_FORCED |
FRAMING_ERROR |
INVALID_PATH |
NORMAL |
Modifier and Type | Method and Description |
---|---|
static ConnectionCloseCode |
get(int value) |
int |
getValue() |
static ConnectionCloseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionCloseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionCloseCode NORMAL
public static final ConnectionCloseCode CONNECTION_FORCED
public static final ConnectionCloseCode INVALID_PATH
public static final ConnectionCloseCode FRAMING_ERROR
public static ConnectionCloseCode[] values()
for (ConnectionCloseCode c : ConnectionCloseCode.values()) System.out.println(c);
public static ConnectionCloseCode 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 getValue()
public static ConnectionCloseCode get(int value)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.