public class DenyAllFilter extends Filter
You can add this filter to the end of a filter chain to switch from the default "accept all unless instructed otherwise" filtering behaviour to a "deny all unless instructed otherwise" behaviour.
Constructor and Description |
---|
DenyAllFilter() |
Modifier and Type | Method and Description |
---|---|
int |
decide(LoggingEvent event)
Always returns the integer constant
Filter.DENY
regardless of the LoggingEvent parameter. |
java.lang.String[] |
getOptionStrings()
Deprecated.
We now use JavaBeans introspection to configure
components. Options strings are no longer needed.
|
void |
setOption(java.lang.String key,
java.lang.String value)
Deprecated.
Use the setter method for the option directly instead
of the generic
setOption method. |
activateOptions, getNext, setNext
public java.lang.String[] getOptionStrings()
null
as there are no options.public void setOption(java.lang.String key, java.lang.String value)
setOption
method.public int decide(LoggingEvent event)
Filter.DENY
regardless of the LoggingEvent
parameter.decide
in class Filter
event
- The LoggingEvent to filter.Filter.DENY
.Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.