org.atmosphere.wasync
Enum Function.MESSAGE
java.lang.Object
java.lang.Enum<Function.MESSAGE>
org.atmosphere.wasync.Function.MESSAGE
- All Implemented Interfaces:
- Serializable, Comparable<Function.MESSAGE>
- Enclosing interface:
- Function<T>
public static enum Function.MESSAGE
- extends Enum<Function.MESSAGE>
error
public static final Function.MESSAGE error
open
public static final Function.MESSAGE open
close
public static final Function.MESSAGE close
message
public static final Function.MESSAGE message
status
public static final Function.MESSAGE status
headers
public static final Function.MESSAGE headers
bytes
public static final Function.MESSAGE bytes
values
public static Function.MESSAGE[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Function.MESSAGE c : Function.MESSAGE.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Function.MESSAGE valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2013. All Rights Reserved.