org.apache.synapse.mediators.filters.router
Class ConditionalRouterMediator

java.lang.Object
  extended by org.apache.synapse.mediators.AbstractMediator
      extended by org.apache.synapse.mediators.filters.router.ConditionalRouterMediator
All Implemented Interfaces:
AspectConfigurable, Mediator, SynapseArtifact

public class ConditionalRouterMediator
extends AbstractMediator

Checks whether the route condition evaluates to true and mediates using the target if it evaluates to true. Matching route will break the router if the breakRoute is set to true on the evaluated route

See Also:
Mediator

Field Summary
 
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
 
Constructor Summary
ConditionalRouterMediator()
           
 
Method Summary
 void addRoute(ConditionalRoute conditionalRoute)
           
 List<ConditionalRoute> getConditionalRoutes()
           
 boolean isContinueAfter()
           
 boolean isContinueAfterExplicitlySet()
           
 boolean mediate(MessageContext synCtx)
          Invokes the mediator passing the current message for mediation.
 void setContinueAfter(boolean continueAfter)
           
 
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalRouterMediator

public ConditionalRouterMediator()
Method Detail

mediate

public boolean mediate(MessageContext synCtx)
Description copied from interface: Mediator
Invokes the mediator passing the current message for mediation. Each mediator performs its mediation action, and returns true if mediation should continue, or false if further mediation should be aborted.

Parameters:
synCtx - the current message for mediation
Returns:
true if further mediation should continue

getConditionalRoutes

public List<ConditionalRoute> getConditionalRoutes()

addRoute

public void addRoute(ConditionalRoute conditionalRoute)

isContinueAfter

public boolean isContinueAfter()

setContinueAfter

public void setContinueAfter(boolean continueAfter)

isContinueAfterExplicitlySet

public boolean isContinueAfterExplicitlySet()


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.