org.apache.servicemix.eip.support
Class RoutingRule

java.lang.Object
  extended by org.apache.servicemix.eip.support.RoutingRule

public class RoutingRule
extends java.lang.Object

The RoutingRule interface is used by content based routers. If the rule predicate matches the MessageExchange, the target defined on the rule will be used as the destination for the given MessageExchange.

Version:
$Revision: 376451 $
Author:
gnodet

Constructor Summary
RoutingRule()
           
RoutingRule(Predicate predicate, ExchangeTarget target)
           
 
Method Summary
 Predicate getPredicate()
           
 ExchangeTarget getTarget()
           
 void setPredicate(Predicate predicate)
          The predicate associated to this routing rule.
 void setTarget(ExchangeTarget target)
          The target to send the routed exchange to if the predicate matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingRule

public RoutingRule()

RoutingRule

public RoutingRule(Predicate predicate,
                   ExchangeTarget target)
Method Detail

getPredicate

public Predicate getPredicate()

getTarget

public ExchangeTarget getTarget()

setPredicate

public void setPredicate(Predicate predicate)
The predicate associated to this routing rule.

Parameters:
predicate - The predicate to set.

setTarget

public void setTarget(ExchangeTarget target)
The target to send the routed exchange to if the predicate matches.

Parameters:
target - The target to set.


Copyright © 2005-2011 FuseSource. All Rights Reserved.