Package org.apache.shenyu.common.enums
Enum TrieMatchModeEvent
- java.lang.Object
-
- java.lang.Enum<TrieMatchModeEvent>
-
- org.apache.shenyu.common.enums.TrieMatchModeEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TrieMatchModeEvent>
public enum TrieMatchModeEvent extends java.lang.Enum<TrieMatchModeEvent>
Shenyu match mode event.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANT_PATH_MATCHant path match.PATH_PATTERNpath pattern.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMatchMode()get trie match mode.static TrieMatchModeEventvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TrieMatchModeEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANT_PATH_MATCH
public static final TrieMatchModeEvent ANT_PATH_MATCH
ant path match.
-
PATH_PATTERN
public static final TrieMatchModeEvent PATH_PATTERN
path pattern.
-
-
Method Detail
-
values
public static TrieMatchModeEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TrieMatchModeEvent c : TrieMatchModeEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrieMatchModeEvent valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getMatchMode
public java.lang.String getMatchMode()
get trie match mode.- Returns:
- match mode
-
-