org.springframework.integration.xml.router
Class XPathSingleChannelRouter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
org.springframework.integration.xml.router.AbstractXPathRouter
org.springframework.integration.xml.router.XPathSingleChannelRouter
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, MessageHandler, TrackableComponent
public class XPathSingleChannelRouter
- extends AbstractXPathRouter
Router that evaluates the payload using XPathExpression.evaluateAsString(Node)
to extract a channel name. The payload is extracted as a node using the
provided XmlPayloadConverter
with DefaultXmlPayloadConverter
being the default.
The provided XPathExpression
must evaluate to a non-empty String.
- Author:
- Jonas Partner
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
XPathSingleChannelRouter
public XPathSingleChannelRouter(String expression,
Map<String,String> namespaces)
- See Also:
AbstractXPathRouter.AbstractXPathRouter(String, Map)
XPathSingleChannelRouter
public XPathSingleChannelRouter(String expression,
String prefix,
String namespace)
- See Also:
AbstractXPathRouter.AbstractXPathRouter(String, String, String)
XPathSingleChannelRouter
public XPathSingleChannelRouter(String expression)
- See Also:
AbstractXPathRouter.AbstractXPathRouter(String)
XPathSingleChannelRouter
public XPathSingleChannelRouter(org.springframework.xml.xpath.XPathExpression expression)
- See Also:
AbstractXPathRouter.AbstractXPathRouter(XPathExpression)
getChannelIndicatorList
protected List<Object> getChannelIndicatorList(Message<?> message)
- Evaluates the payload using
XPathExpression.evaluateAsString(Node)
- Specified by:
getChannelIndicatorList
in class AbstractChannelNameResolvingMessageRouter
- Throws:
MessagingException
- if the XPathExpression
evaluates to
an empty string
Copyright © 2010. All Rights Reserved.