org.ikasan.framework.component.routing
Class AbstractFilteringRouter

java.lang.Object
  extended by org.ikasan.framework.component.routing.SingleResultRouter
      extended by org.ikasan.framework.component.routing.AbstractFilteringRouter
All Implemented Interfaces:
Router, FlowComponent

public abstract class AbstractFilteringRouter
extends SingleResultRouter


Field Summary
static String EXCLUSION_TRANSITION
          Transition for exclusion of the event
static String INCLUSION_TRANSITION
          Default Transition for letting an even pass
 
Fields inherited from interface org.ikasan.framework.component.routing.Router
DEFAULT_RESULT
 
Constructor Summary
AbstractFilteringRouter()
           
 
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 org.ikasan.framework.component.routing.SingleResultRouter
onEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractFilteringRouter

public AbstractFilteringRouter()
Method Detail

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.