Class AbstractFilter.AbstractFilterBuilder<B extends AbstractFilter.AbstractFilterBuilder<B>>
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder<B>
- Direct Known Subclasses:
BurstFilter.Builder
,DenyAllFilter.Builder
,LevelMatchFilter.Builder
,MutableThreadContextMapFilter.Builder
,NoMarkerFilter.Builder
,StringMatchFilter.Builder
- Enclosing class:
- AbstractFilter
public abstract static class AbstractFilter.AbstractFilterBuilder<B extends AbstractFilter.AbstractFilterBuilder<B>>
extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetOnMatch
(Filter.Result onMatch) Sets the Result to return when the filter matches.setOnMismatch
(Filter.Result onMismatch) Sets the Result to return when the filter does not match.
-
Field Details
-
ATTR_ON_MISMATCH
- See Also:
-
ATTR_ON_MATCH
- See Also:
-
-
Constructor Details
-
AbstractFilterBuilder
public AbstractFilterBuilder()
-
-
Method Details
-
getOnMatch
-
getOnMismatch
-
setOnMatch
Sets the Result to return when the filter matches. Defaults to Result.NEUTRAL.- Parameters:
onMatch
- the Result to return when the filter matches.- Returns:
- this
-
setOnMismatch
Sets the Result to return when the filter does not match. The default is Result.DENY.- Parameters:
onMismatch
- the Result to return when the filter does not match.- Returns:
- this
-
asBuilder
-