- All Implemented Interfaces:
Serializable
,Comparable<RouterOption>
,Constable
Router matching options. Specify whenever ignore case and trailing slash. Options:
- IGNORE_CASE: Indicates whenever routing algorithm does case-sensitive matching on incoming
request path. Default is
case sensitive
. - IGNORE_TRAILING_SLASH: Indicates whenever a trailing slash is ignored on incoming request path.
- NORMALIZE_SLASH: Normalize incoming request path by removing consecutive
/
(slashes). - RESET_HEADERS_ON_ERROR: Indicates whenever response headers are clear/reset in case of exception.
- Since:
- 2.4.0
- Author:
- edgar
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates whenever routing algorithm does case-sensitive matching on incoming request path.Indicates whenever a trailing slash is ignored on incoming request path.Normalize incoming request path by removing multiple slash sequences.Indicates whenever response headers are clear/reset in case of exception. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouterOption
Returns the enum constant of this class with the specified name.static RouterOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
IGNORE_CASE
Indicates whenever routing algorithm does case-sensitive matching on incoming request path. Default iscase sensitive
. -
IGNORE_TRAILING_SLASH
Indicates whenever a trailing slash is ignored on incoming request path. -
NORMALIZE_SLASH
Normalize incoming request path by removing multiple slash sequences. -
RESET_HEADERS_ON_ERROR
Indicates whenever response headers are clear/reset in case of exception.
-
-
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
-