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