Package org.apache.logging.log4j.core
Enum Filter.Result
- All Implemented Interfaces:
Serializable
,Comparable<Filter.Result>
- Enclosing interface:
- Filter
The result that can returned from a filter method call.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Filter.Result
Returns the Result for the given string.static Filter.Result
toResult
(String name, Filter.Result defaultResult) Returns the Result for the given string.static Filter.Result
Returns the enum constant of this type with the specified name.static Filter.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCEPT
The event will be processed without further filtering based on the log Level. -
NEUTRAL
No decision could be made, further filtering should occur. -
DENY
The event should not be processed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toResult
Returns the Result for the given string.- Parameters:
name
- The Result enum name, case-insensitive. If null, returns, null- Returns:
- a Result enum value or null if name is null
-
toResult
Returns the Result for the given string.- Parameters:
name
- The Result enum name, case-insensitive. If null, returns, defaultResultdefaultResult
- the Result to return if name is null- Returns:
- a Result enum value (
defaultResult
if name is null)
-