public enum RoutePathType extends Enum<RoutePathType>
Route is created.RouteBuilder.path(String)| Enum Constant and Description |
|---|
EXACT
The exact path type. e.g, "/foo"
|
PARAMETERIZED
The path which contains path parameters. e.g, "/:", "/foo/:/bar/:"
|
PREFIX
The prefix path type. e.g, "/", "/foo/"
|
REGEX
The regex path type. e.g, {@code "^/(?
|
REGEX_WITH_PREFIX
The path which has the prefix and the regex.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasTriePath()
Tells whether this
RoutePathType has a trie path or not. |
static RoutePathType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoutePathType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoutePathType EXACT
public static final RoutePathType PREFIX
public static final RoutePathType PARAMETERIZED
public static final RoutePathType REGEX
"^/(?<foo>.*)$"
The Route which is created using RouteBuilder.glob(String) and
RouteBuilder.regex(String) can be this type.public static final RoutePathType REGEX_WITH_PREFIX
RouteBuilder.path(String, String)public static RoutePathType[] values()
for (RoutePathType c : RoutePathType.values()) System.out.println(c);
public static RoutePathType 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 boolean hasTriePath()
RoutePathType has a trie path or not.Copyright © 2020 LeanCloud. All rights reserved.