org.ikasan.framework.component.routing
Class XMLValidatorRouter

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

public class XMLValidatorRouter
extends SingleResultRouter

Implementation of Router that returns a single result:valid or invalid based on validation of the incoming payload(s).

Author:
Ikasan Development Team

Field Summary
 
Fields inherited from interface org.ikasan.framework.component.routing.Router
DEFAULT_RESULT
 
Constructor Summary
XMLValidatorRouter(DocumentBuilderFactory factory)
          Constructor
 
Method Summary
protected  String evaluate(Event event)
          Returns a single value as a result of evaluating the Event
 
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
 

Constructor Detail

XMLValidatorRouter

public XMLValidatorRouter(DocumentBuilderFactory factory)
Constructor

Parameters:
factory - - pre configured document builder factory
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


Copyright © 2007-2012 Ikasan. All Rights Reserved.