public class XPathRouter extends AbstractMappingMessageRouter
XPathExpression evaluation to determine channel names.IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
XPathRouter(String expression)
Create a router that uses an XPath expression with no namespaces.
|
XPathRouter(String expression,
Map<String,String> namespaces)
Create a router that uses an XPath expression.
|
XPathRouter(String expression,
String prefix,
String namespace)
Create a router uses an XPath expression with one namespace.
|
XPathRouter(XPathExpression expression)
Create a router that uses the provided XPath expression.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
getChannelKeys(Message<?> message)
Subclasses must implement this method to return the channel keys.
|
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, getDynamicChannelNames, removeChannelMapping, replaceChannelMappings, setChannelKeyFallback, setChannelMapping, setChannelMappings, setDynamicChannelLimit, setPrefix, setResolutionRequired, setSuffixgetDefaultOutputChannel, getMessagingTemplate, getRequiredConversionService, handleMessageInternal, onInit, setApplySequence, setDefaultOutputChannel, setDefaultOutputChannelName, setIgnoreSendFailures, setSendTimeoutconfigureMetrics, destroy, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMetricsCaptor, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, registerMetricsCaptor, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiterrorCount, handleCountgetBeanName, getComponentNamepublic XPathRouter(String expression, Map<String,String> namespaces)
expression - the XPath expression as a Stringnamespaces - map of namespaces with prefixes as the map keyspublic XPathRouter(String expression, String prefix, String namespace)
expression - the XPath expression as a Stringprefix - namespace prefixnamespace - namespace uripublic XPathRouter(String expression)
expression - the XPath expression as a Stringpublic XPathRouter(XPathExpression expression)
expression - the XPath expressionpublic void setEvaluateAsString(boolean evaluateAsString)
public void setConverter(XmlPayloadConverter converter)
converter - The payload converter.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageRouterprotected List<Object> getChannelKeys(Message<?> message)
AbstractMappingMessageRoutergetChannelKeys in class AbstractMappingMessageRoutermessage - The message.