org.ikasan.framework.component.routing
Class AbstractFilteringRouter
java.lang.Object
org.ikasan.framework.component.routing.SingleResultRouter
org.ikasan.framework.component.routing.AbstractFilteringRouter
- All Implemented Interfaces:
- Router, FlowComponent
public abstract class AbstractFilteringRouter
- extends SingleResultRouter
|
Method Summary |
protected String |
evaluate(Event event)
Returns a single value as a result of evaluating the Event |
protected abstract boolean |
filter(Event event)
Should this Event be caught by the filter? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXCLUSION_TRANSITION
public static final String EXCLUSION_TRANSITION
- Transition for exclusion of the event
- See Also:
- Constant Field Values
INCLUSION_TRANSITION
public static final String INCLUSION_TRANSITION
- Default Transition for letting an even pass
- See Also:
- Constant Field Values
AbstractFilteringRouter
public AbstractFilteringRouter()
evaluate
protected String evaluate(Event event)
throws RouterException
- Description copied from class:
SingleResultRouter
- Returns a single value as a result of evaluating the
Event
- Specified by:
evaluate in class SingleResultRouter
- Parameters:
event - to evaluate
- Returns:
- result
- Throws:
RouterException - Exception if we could not route the event
filter
protected abstract boolean filter(Event event)
- Should this Event be caught by the filter?
- Parameters:
event -
- Returns:
- true if this event should be filtered out
Copyright © 2007-2012 Ikasan. All Rights Reserved.