org.x4juli.global.spi
Interface ExtendedFilter

All Superinterfaces:
java.util.logging.Filter, OptionHandler
All Known Implementing Classes:
AbstractFilter

public interface ExtendedFilter
extends java.util.logging.Filter, OptionHandler

Interface how filtering in x4juli works.

Since:
0.5
Author:
Boris Unckel

Field Summary
static boolean ACCEPT
          The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.
static boolean DENY
          The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.
static int X4JULI_ACCEPT
          The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.
static int X4JULI_DENY
          The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.
static int X4JULI_NEUTRAL
          This filter is neutral with respect to the log event.
 
Method Summary
 int decide(ExtendedLogRecord record)
           If the decision is DENY, then the event will be dropped.
 ExtendedFilter getNext()
          Return the pointer to the next filter;
 void setNext(ExtendedFilter next)
          Set the next filter pointer.
 
Methods inherited from interface java.util.logging.Filter
isLoggable
 
Methods inherited from interface org.x4juli.global.spi.OptionHandler
activateOptions
 

Field Detail

DENY

public static final boolean DENY
The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.

See Also:
Constant Field Values

ACCEPT

public static final boolean ACCEPT
The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.

See Also:
Constant Field Values

X4JULI_DENY

public static final int X4JULI_DENY
The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.
Concept of "int-decisions" done for enhanced possibilities.

See Also:
Constant Field Values

X4JULI_NEUTRAL

public static final int X4JULI_NEUTRAL
This filter is neutral with respect to the log event. The remaining filters, if any, should be consulted for a final decision.
Concept of "int-decisions" done for enhanced possibilities.

See Also:
Constant Field Values

X4JULI_ACCEPT

public static final int X4JULI_ACCEPT
The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.
Concept of "int-decisions" done for enhanced possibilities.

See Also:
Constant Field Values
Method Detail

decide

public 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.

Parameters:
record - The LoggingEvent to decide upon.
Since:
0.5

setNext

public void setNext(ExtendedFilter next)
Set the next filter pointer.

Since:
0.5

getNext

public ExtendedFilter getNext()
Return the pointer to the next filter;

Since:
0.5


${license_html}