org.ikasan.framework.component.routing
Class XMLValidatorRouter
java.lang.Object
org.ikasan.framework.component.routing.SingleResultRouter
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
|
Method Summary |
protected String |
evaluate(Event event)
Returns a single value as a result of evaluating the Event |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLValidatorRouter
public XMLValidatorRouter(DocumentBuilderFactory factory)
- Constructor
- Parameters:
factory - - pre configured document builder factory
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.