Package 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
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description URLEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(java.lang.String url)
boolean
evaluate(java.lang.Object eventObject)
Evaluates whether the event passed as parameter matches some user-specified criteria.java.lang.String
getName()
Evaluators are named entities.boolean
isStarted()
void
setName(java.lang.String name)
Evaluators are named entities.void
start()
void
stop()
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Method Detail
-
addURL
public void addURL(java.lang.String url)
-
evaluate
public boolean evaluate(java.lang.Object eventObject) throws java.lang.NullPointerException, EvaluationException
Description copied from interface:EventEvaluator
Evaluates whether the event passed as parameter matches some user-specified criteria.The
Evaluator
is free to evaluate the event as it pleases. In particular, the evaluation results may depend on previous events.- Specified by:
evaluate
in interfaceEventEvaluator
- Parameters:
eventObject
- The event to evaluate- Returns:
- true if there is a match, false otherwise.
- Throws:
java.lang.NullPointerException
- can be thrown in presence of null valuesEvaluationException
- may be thrown during faulty evaluation
-
getName
public java.lang.String getName()
Description copied from interface:EventEvaluator
Evaluators are named entities.- Specified by:
getName
in interfaceEventEvaluator
- Returns:
- The name of this evaluator.
-
setName
public void setName(java.lang.String name)
Description copied from interface:EventEvaluator
Evaluators are named entities.- Specified by:
setName
in interfaceEventEvaluator
-
-