ch.qos.logback.access.net
Class URLEvaluator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.access.net.URLEvaluator
- All Implemented Interfaces:
- EventEvaluator, ContextAware, LifeCycle
public class URLEvaluator
- extends ContextAwareBase
- implements EventEvaluator, LifeCycle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLEvaluator
public URLEvaluator()
addURL
public void addURL(String url)
start
public void start()
- Specified by:
start in interface LifeCycle
evaluate
public boolean evaluate(Object eventObject)
throws NullPointerException,
EvaluationException
- Description copied from interface:
EventEvaluator
- Evaluates whether the event passed as parameter matches this evaluator's
matching criteria.
The Evaluator instance is free to evaluate the event as
it pleases. In particular, the evaluation results may depend on
previous events.
- Specified by:
evaluate in interface EventEvaluator
- Parameters:
eventObject - The event to evaluate
- Returns:
- true if there is a match, false otherwise.
- Throws:
NullPointerException - can be thrown in presence of null values
EvaluationException - Thrown during evaluation
getName
public String getName()
- Description copied from interface:
EventEvaluator
- Evaluators are named entities.
- Specified by:
getName in interface EventEvaluator
- Returns:
- The name of this evaluator.
setName
public void setName(String name)
- Description copied from interface:
EventEvaluator
- Evaluators are named entities.
- Specified by:
setName in interface EventEvaluator
isStarted
public boolean isStarted()
- Specified by:
isStarted in interface LifeCycle
stop
public void stop()
- Specified by:
stop in interface LifeCycle
Copyright © 2005-2008 QOS.ch. All Rights Reserved.