public static enum Router.Status extends Enum<Router.Status>
| Enum Constant and Description |
|---|
METHOD_NOT_ALLOWED
A matching endpoint was found but no method matched.
|
NOT_FOUND
A matching endpoint was not found.
|
SUCCESS
A matching endpoint and method was found.
|
| Modifier and Type | Method and Description |
|---|---|
static Router.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Router.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Router.Status SUCCESS
public static final Router.Status NOT_FOUND
public static final Router.Status METHOD_NOT_ALLOWED
public static Router.Status[] values()
for (Router.Status c : Router.Status.values()) System.out.println(c);
public static Router.Status 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 nullCopyright © 2015. All Rights Reserved.