Package com.linecorp.armeria.server
Enum Class RoutePathType
- All Implemented Interfaces:
Serializable
,Comparable<RoutePathType>
,Constable
The type of the path which was specified when a
Route
is created.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe exact path type. e.g, "/foo"The path which contains path parameters. e.g, "/:", "/foo/:/bar/:"The prefix path type. e.g, "/", "/foo/"The regex path type. e.g,"^/(?<foo>.*)$"
TheRoute
which is created usingRouteBuilder.glob(String)
andRouteBuilder.regex(String)
can be this type.The path which has the prefix and the regex. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tells whether thisRoutePathType
has a trie path or not.static RoutePathType
Returns the enum constant of this class with the specified name.static RoutePathType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXACT
The exact path type. e.g, "/foo" -
PREFIX
The prefix path type. e.g, "/", "/foo/" -
PARAMETERIZED
The path which contains path parameters. e.g, "/:", "/foo/:/bar/:" -
REGEX
The regex path type. e.g,"^/(?<foo>.*)$"
TheRoute
which is created usingRouteBuilder.glob(String)
andRouteBuilder.regex(String)
can be this type. -
REGEX_WITH_PREFIX
The path which has the prefix and the regex.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
hasTriePath
public boolean hasTriePath()Tells whether thisRoutePathType
has a trie path or not.
-