org.mule.api.routing
Interface MatchingRouter

All Superinterfaces:
MessageProcessor
All Known Subinterfaces:
OutboundRouterCollection
All Known Implementing Classes:
AbstractMatchingRouter, DefaultOutboundRouterCollection

public interface MatchingRouter
extends MessageProcessor

Routes the message to zero or more MatchableMessageProcessors. Which route(s) are used used is defined by implementations of this interface which use the Matchable.isMatch(org.mule.api.MuleMessage) method of the routers to determine if a router accept the event or not.

Different implementations may route to the first match, or to all matches or you some other strategy. If the implementation supports the use of a default route then this will be used to route any events that don't match any other routes.


Method Summary
 void addRoute(MatchableMessageProcessor matchable)
           
 void removeRoute(MatchableMessageProcessor matchable)
           
 
Methods inherited from interface org.mule.api.processor.MessageProcessor
process
 

Method Detail

addRoute

void addRoute(MatchableMessageProcessor matchable)

removeRoute

void removeRoute(MatchableMessageProcessor matchable)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.