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, transactionConfigmuleContextPHASE_NAMEPHASE_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, setUseTemplatescreateTransactionTemplate, dispatch, getEnableCorrelation, getEndpoint, getEndpoints, getMessageInfoMapping, getReplyTo, getTransactionConfig, isDynamicEndpoints, removeEndpoint, send, setEnableCorrelation, setEnableCorrelationAsString, setMessageInfoMapping, setMessageProperties, setReplyTo, setTransactionConfigdispose, getMuleContext, getRouterStatistics, initialise, setMuleContext, setRouterStatisticsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRouterStatistics, setRouterStatisticsinitialisedisposepublic void addEndpoint(OutboundEndpoint endpoint)
OutboundRouteraddEndpoint in interface OutboundRouteraddEndpoint in class FilteringOutboundRouterendpoint - the endpoint to add to the routerpublic void setEndpoints(List endpoints)
OutboundRoutersetEndpoints in interface OutboundRoutersetEndpoints in class AbstractOutboundRouterendpoints - a list of Endpoint instancespublic void setFilter(Filter filter)
setFilter in class FilteringOutboundRouterpublic MuleMessage route(MuleMessage message, MuleSession session, boolean synchronous) throws RoutingException
OutboundRouterroute in interface OutboundRouterroute in class FilteringOutboundRoutermessage - 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 notRoutingExceptionFilteringOutboundRouter,
ExceptionBasedRouter,
MulticastingRouterCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.