public class XPathRouter extends AbstractMappingMessageRouter
XPathExpression evaluation to determine channel names.logger| Constructor and Description |
|---|
XPathRouter(java.lang.String expression)
Create a router that uses an XPath expression with no namespaces.
|
XPathRouter(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces)
Create a router that uses an XPath expression.
|
XPathRouter(java.lang.String expression,
java.lang.String prefix,
java.lang.String namespace)
Create a router uses an XPath expression with one namespace.
|
XPathRouter(org.springframework.xml.xpath.XPathExpression expression)
Create a router that uses the provided XPath expression.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.Object> |
getChannelKeys(org.springframework.messaging.Message<?> message)
Subclasses must implement this method to return the channel keys.
|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
void |
setConverter(XmlPayloadConverter converter)
Specify the Converter to use when converting payloads prior to XPath evaluation.
|
void |
setEvaluateAsString(boolean evaluateAsString) |
determineTargetChannels, getChannelMappings, onInit, removeChannelMapping, setChannelMapping, setChannelMappings, setChannelResolver, setPrefix, setResolutionRequired, setSuffixgetMessagingTemplate, getRequiredConversionService, handleMessageInternal, setApplySequence, setDefaultOutputChannel, setIgnoreSendFailures, setTimeoutgetOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic XPathRouter(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces)
expression - the XPath expression as a Stringnamespaces - map of namespaces with prefixes as the map keyspublic XPathRouter(java.lang.String expression,
java.lang.String prefix,
java.lang.String namespace)
expression - the XPath expression as a Stringprefix - namespace prefixnamespace - namespace uripublic XPathRouter(java.lang.String expression)
expression - the XPath expression as a Stringpublic XPathRouter(org.springframework.xml.xpath.XPathExpression expression)
expression - the XPath expressionpublic void setEvaluateAsString(boolean evaluateAsString)
public void setConverter(XmlPayloadConverter converter)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageRouterprotected java.util.List<java.lang.Object> getChannelKeys(org.springframework.messaging.Message<?> message)
AbstractMappingMessageRoutergetChannelKeys in class AbstractMappingMessageRouter