|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.x4juli.global.components.AbstractComponent
org.x4juli.global.components.AbstractFilter
The abstract class for every org.x4juli.filter class. The
class provides the basic implementation for cascading filters. Different to
log4j, java.util.logging.Filter works with booleans (and so
has two states) - log4j offers three.
| Field Summary | |
private ExtendedFilter |
next
Points to the next filter in the filter chain. |
| Fields inherited from class org.x4juli.global.components.AbstractComponent |
INTERNAL_LOG_LEVEL, manager, repository |
| Fields inherited from interface org.x4juli.global.spi.ExtendedFilter |
ACCEPT, DENY, X4JULI_ACCEPT, X4JULI_DENY, X4JULI_NEUTRAL |
| Constructor Summary | |
AbstractFilter()
|
|
| Method Summary | |
void |
activateOptions()
Usually filters options become active when set. |
abstract int |
decide(ExtendedLogRecord record)
If the decision is DENY, then the event will be dropped.
|
ExtendedFilter |
getNext()
Return the pointer to the next filter; |
boolean |
isLoggable(java.util.logging.LogRecord record)
|
void |
setNext(ExtendedFilter next)
Set the next filter pointer. |
| Methods inherited from class org.x4juli.global.components.AbstractComponent |
getLogger, getLogger, getLoggerRepository, getMessageProperties, getNonFloodingLogger, getProperty, getProperty, getProperty, getProperty, resetErrorCount, setObjectStore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ExtendedFilter next
| Constructor Detail |
public AbstractFilter()
| Method Detail |
public void activateOptions()
activateOptions in interface OptionHandlerOptionHandler.activateOptions()public void setNext(ExtendedFilter next)
ExtendedFilter
setNext in interface ExtendedFilterExtendedFilter.setNext(org.x4juli.global.spi.ExtendedFilter)public ExtendedFilter getNext()
ExtendedFilter
getNext in interface ExtendedFilterExtendedFilter.getNext()public abstract int decide(ExtendedLogRecord record)
If the decision is DENY, then the event will be dropped.
If the decision is NEUTRAL, then the next filter, if any,
will be invoked. If the decision is ACCEPT then the event will be logged
without consulting with other filters in the chain.
decide in interface ExtendedFilterrecord - The LoggingEvent to decide upon.public final boolean isLoggable(java.util.logging.LogRecord record)
isLoggable in interface java.util.logging.FilterFilter.isLoggable(java.util.logging.LogRecord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||