@Deprecated public class EndpointSelector extends FilteringOutboundRouter
EndpointSelector selects the outgoing endpoint based on a
an expression evaluator ("header:endpoint" by default). It will first try to match the
endpoint by name and then by address.
The targets to use can be set on the router itself or be global endpoint definitions.
<outbound>
<endpoint-selector-router evaluator="xpath" expression="/MSG/HEADER/NEXT-ADDRESS">
<endpoint name="dest1" address="jms://queue1" />
<endpoint name="dest2" address="jms://queue2" />
<endpoint name="dest3" address="jms://queue3" />
</endpoint-selector-router>
</outbound>
Deprecated from 3.6.0. This functionality is specific to Services.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SELECTOR_EVALUATOR
Deprecated.
|
static String |
DEFAULT_SELECTOR_EXPRESSION
Deprecated.
|
expressionManagerenableCorrelation, initialised, logger, replyTo, resultsHandler, routes, started, transactionConfigflowConstruct, messagingExceptionHandler, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
EndpointSelector()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCustomEvaluator()
Deprecated.
|
String |
getDefaultEndpointName()
Deprecated.
|
String |
getEvaluator()
Deprecated.
|
String |
getExpression()
Deprecated.
|
protected MessageProcessor |
lookupEndpoint(String endpointName)
Deprecated.
|
MuleEvent |
route(MuleEvent event)
Deprecated.
|
void |
setCustomEvaluator(String customEvaluator)
Deprecated.
|
void |
setDefaultEndpointName(String defaultEndpointName)
Deprecated.
|
void |
setEvaluator(String evaluator)
Deprecated.
|
void |
setExpression(String expression)
Deprecated.
|
addRoute, getFilter, getRoute, getTransformers, initialise, isMatch, isTransformBeforeMatch, isUseTemplates, setFilter, setTransformers, setUseTemplatescloneMessage, cloneMessage, createEventToRoute, dispose, getEnableCorrelation, getMuleContext, getOwnedMessageProcessors, getReplyTo, getResultsHandler, getRoute, getRouterStatistics, getRoutes, getTransactionConfig, isDynamicRoutes, process, propagateMagicProperties, removeRoute, sendRequest, sendRequestEvent, setEnableCorrelation, setEnableCorrelationAsString, setMessageProcessors, setMessageProperties, setReplyTo, setResultsHandler, setRouterStatistics, setRoutes, setTransactionConfig, start, stopaddMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotationsgetFlowConstruct, getMessagingExceptionHandler, setFlowConstruct, setMessagingExceptionHandler, setMuleContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetMuleContextsetFlowConstructpublic static final String DEFAULT_SELECTOR_EVALUATOR
public static final String DEFAULT_SELECTOR_EXPRESSION
public MuleEvent route(MuleEvent event) throws RoutingException
route in class FilteringOutboundRouterRoutingExceptionprotected MessageProcessor lookupEndpoint(String endpointName) throws MuleException
MuleExceptionpublic String getExpression()
public void setExpression(String expression)
public String getCustomEvaluator()
public void setCustomEvaluator(String customEvaluator)
public String getEvaluator()
public void setEvaluator(String evaluator)
public String getDefaultEndpointName()
public void setDefaultEndpointName(String defaultEndpointName)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.