public class TransformerRouter extends AbstractOutboundRouter
ChainingRouter
.ENABLE_CORRELATION_ALWAYS, ENABLE_CORRELATION_IF_NOT_SET, ENABLE_CORRELATION_NEVER, enableCorrelation, endpoints, logger, messageInfoMapping, replyTo, transactionConfig
muleContext
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
TransformerRouter() |
Modifier and Type | Method and Description |
---|---|
Transformer |
getTransformer() |
boolean |
isMatch(MuleMessage message)
Determines if the event should be processed by this router.
|
MuleMessage |
route(MuleMessage message,
MuleSession session,
boolean synchronous)
This method is responsible for routing the Message via the MuleSession.
|
void |
setTransformer(Transformer transformer) |
addEndpoint, createTransactionTemplate, dispatch, getEnableCorrelation, getEndpoint, getEndpoints, getMessageInfoMapping, getReplyTo, getTransactionConfig, isDynamicEndpoints, removeEndpoint, send, setEnableCorrelation, setEnableCorrelationAsString, setEndpoints, setMessageInfoMapping, setMessageProperties, setReplyTo, setTransactionConfig
dispose, getMuleContext, getRouterStatistics, initialise, setMuleContext, setRouterStatistics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRouterStatistics, setRouterStatistics
initialise
dispose
public MuleMessage route(MuleMessage message, MuleSession session, boolean synchronous) throws MessagingException
OutboundRouter
message
- the message to send via one or more endpoints on this routersession
- the session used to actually send the eventsynchronous
- whether the invocation process should be synchronous or notMessagingException
- if any errors occur during the sending of messagesFilteringOutboundRouter
,
ExceptionBasedRouter
,
MulticastingRouter
public boolean isMatch(MuleMessage message) throws MessagingException
OutboundRouter
message
- the current message to evaluateMessagingException
- if the event cannot be evaluatedSelectiveConsumer
public Transformer getTransformer()
public void setTransformer(Transformer transformer)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.