org.springframework.integration.xml.router
Class AbstractXPathRouter
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
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, MessageHandler, TrackableComponent
- Direct Known Subclasses:
- XPathMultiChannelRouter, XPathSingleChannelRouter
public abstract class AbstractXPathRouter
- extends AbstractChannelNameResolvingMessageRouter
Abstract base class for Message Routers that use
XPathExpression
evaluation to determine channel names.
- Author:
- Jonas Partner
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
AbstractXPathRouter
public AbstractXPathRouter(String expression,
Map<String,String> namespaces)
- Create a router that uses an XPath expression. The expression may
contain zero or more namespace prefixes.
- Parameters:
expression
- namespaces
-
AbstractXPathRouter
public AbstractXPathRouter(String expression,
String prefix,
String namespace)
- Create a router uses an XPath expression with one namespace. For example,
expression='/ns1:one/@type' prefix='ns1' namespace='www.example.org'
- Parameters:
expression
- prefix
- namespace
-
AbstractXPathRouter
public AbstractXPathRouter(String expression)
- Create a router that uses an XPath expression with no namespaces.
For example '/one/@type'
- Parameters:
expression
-
AbstractXPathRouter
public AbstractXPathRouter(org.springframework.xml.xpath.XPathExpression expression)
- Create a router that uses the provided XPath expression.
- Parameters:
expression
-
getConverter
protected XmlPayloadConverter getConverter()
setConverter
public void setConverter(XmlPayloadConverter converter)
- Converter used to convert payloads prior to XPath testing.
- Parameters:
converter
-
getXPathExpression
protected org.springframework.xml.xpath.XPathExpression getXPathExpression()
Copyright © 2010. All Rights Reserved.