public class OutboundPassThroughRouter extends FilteringOutboundRouter
OutboundPassThroughRouter
allows outbound routing over a single
endpoint without any filtering. This class is used by Mule when a single outbound
router is set on a UMODescriptor.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 |
---|
OutboundPassThroughRouter() |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(OutboundEndpoint endpoint)
Adds an endpoint to this router
|
MuleMessage |
route(MuleMessage message,
MuleSession session,
boolean synchronous)
This method is responsible for routing the Message via the MuleSession.
|
void |
setEndpoints(List endpoints)
Sets a list of Endpoint instances associated with this router
|
void |
setFilter(Filter filter) |
getEndpoint, getFilter, getTransformers, isMatch, isUseTemplates, setTransformers, setUseTemplates
createTransactionTemplate, dispatch, getEnableCorrelation, getEndpoint, getEndpoints, getMessageInfoMapping, getReplyTo, getTransactionConfig, isDynamicEndpoints, removeEndpoint, send, setEnableCorrelation, setEnableCorrelationAsString, 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 void addEndpoint(OutboundEndpoint endpoint)
OutboundRouter
addEndpoint
in interface OutboundRouter
addEndpoint
in class FilteringOutboundRouter
endpoint
- the endpoint to add to the routerpublic void setEndpoints(List endpoints)
OutboundRouter
setEndpoints
in interface OutboundRouter
setEndpoints
in class AbstractOutboundRouter
endpoints
- a list of Endpoint instancespublic void setFilter(Filter filter)
setFilter
in class FilteringOutboundRouter
public MuleMessage route(MuleMessage message, MuleSession session, boolean synchronous) throws RoutingException
OutboundRouter
route
in interface OutboundRouter
route
in class FilteringOutboundRouter
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 notRoutingException
FilteringOutboundRouter
,
ExceptionBasedRouter
,
MulticastingRouter
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.