|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Filter.Result>
org.apache.logging.log4j.core.Filter.Result
public static enum Filter.Result
The result that can returned from a filter method call.
Enum Constant Summary | |
---|---|
ACCEPT
The event will be processed without further filtering based on the log Level. |
|
DENY
The event should not be processed. |
|
NEUTRAL
No decision could be made, further filtering should occur. |
Method Summary | |
---|---|
static Filter.Result |
toResult(String name)
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 |
valueOf(String name)
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Filter.Result ACCEPT
public static final Filter.Result NEUTRAL
public static final Filter.Result DENY
Method Detail |
---|
public static Filter.Result[] values()
for (Filter.Result c : Filter.Result.values()) System.out.println(c);
public static Filter.Result valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Filter.Result toResult(String name)
name
- The Result enum name, case-insensitive. If null, returns, null
public static Filter.Result toResult(String name, Filter.Result defaultResult)
name
- The Result enum name, case-insensitive. If null, returns, defaultResultdefaultResult
- the Result to return if name is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |