org.ow2.petals.se.eip.patterns
Class XPathRouterEngine

java.lang.Object
  extended by org.ow2.petals.se.eip.patterns.XPathRouterEngine
All Implemented Interfaces:
RouterEngine

public class XPathRouterEngine
extends java.lang.Object
implements RouterEngine

Helper to route
TODO use the XSLTUtil instead of create a XPath engine on each call

Author:
Frederic Gardes

Constructor Summary
XPathRouterEngine()
           
 
Method Summary
 java.util.List<java.lang.String> getXpathParameters(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
 int route(java.util.List<java.lang.String> conditions, org.w3c.dom.Document document)
           
 int route(java.util.List<java.lang.String> conditions, org.ow2.petals.component.framework.api.message.Exchange exchange)
          Get the index of the routed Consumes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathRouterEngine

public XPathRouterEngine()
Method Detail

getXpathParameters

public final java.util.List<java.lang.String> getXpathParameters(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)

route

public final int route(java.util.List<java.lang.String> conditions,
                       org.ow2.petals.component.framework.api.message.Exchange exchange)
                throws javax.xml.xpath.XPathExpressionException,
                       org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
                       javax.jbi.messaging.MessagingException
Description copied from interface: RouterEngine
Get the index of the routed Consumes.

Specified by:
route in interface RouterEngine
Returns:
Throws:
javax.xml.xpath.XPathExpressionException
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.jbi.messaging.MessagingException

route

public final int route(java.util.List<java.lang.String> conditions,
                       org.w3c.dom.Document document)
                throws javax.xml.xpath.XPathExpressionException,
                       org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
                       javax.jbi.messaging.MessagingException
Parameters:
conditions -
inMessage -
context -
Returns:
Throws:
javax.xml.xpath.XPathExpressionException
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.jbi.messaging.MessagingException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.