@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.
|
expressionManager
enableCorrelation, initialised, logger, replyTo, resultsHandler, routes, started, transactionConfig
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_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, setUseTemplates
cloneMessage, 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, stop
addMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotations
getFlowConstruct, getMessagingExceptionHandler, setFlowConstruct, setMessagingExceptionHandler, setMuleContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMuleContext
setFlowConstruct
public static final String DEFAULT_SELECTOR_EVALUATOR
public static final String DEFAULT_SELECTOR_EXPRESSION
public MuleEvent route(MuleEvent event) throws RoutingException
route
in class FilteringOutboundRouter
RoutingException
protected MessageProcessor lookupEndpoint(String endpointName) throws MuleException
MuleException
public 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.