public enum Route extends Enum<Route>
Modifier and Type | Class and Description |
---|---|
static class |
Route.Mapping |
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Route.Mapping |
getRouteMapping(String uri) |
void |
register(Route.Mapping routeMapping) |
void |
unregister(String uri) |
static Route |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Route[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Route INSTANCE
public static Route[] values()
for (Route c : Route.values()) System.out.println(c);
public static Route 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 final void register(Route.Mapping routeMapping)
public void unregister(String uri)
public Route.Mapping getRouteMapping(String uri)
Copyright © 2016 RestNEXT. All rights reserved.