Enum Class FilterLocation
- All Implemented Interfaces:
Serializable,Comparable<FilterLocation>,Constable
An enumeration defining the places plugin filters can appear in an applications filter stack. The locations are
defined by what operations they immediate precede or follow.
- Since:
- 2.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterLocationParses a filter location from a string.static FilterLocationReturns the enum constant of this class with the specified name.static FilterLocation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AFTER_ENCODING
-
BEFORE_LOGIN
-
BEFORE_DECORATION
-
BEFORE_DISPATCH
-
-
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
-
parse
Parses a filter location from a string. Characters are converted to uppercase, and dashes into underscores.- Parameters:
value- The filter location as a string- Returns:
- The matching filter location. Will never be null.
- Throws:
IllegalArgumentException- If the filter string is null or can't be matched to a filter location enum
-