public class SwitchMediator extends AbstractMediator implements ManagedLifecycle
log, trace, traceState| Constructor and Description |
|---|
SwitchMediator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCase(SwitchCase m)
Adds the given mediator (Should be a SwitchCaseMediator) to the list of cases
of this Switch mediator
|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
List<SwitchCase> |
getCases()
Get the list of cases
|
SwitchCase |
getDefaultCase()
Get default case
|
SynapseXPath |
getSource()
Return the source XPath expression set
|
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
mediate(MessageContext synCtx)
Iterate over switch cases and find match and execute selected sequence
|
void |
setDefaultCase(SwitchCase defaultCase)
setting the default case ...which contains mediators to invoke when no case condition satisfy
|
void |
setSource(SynapseXPath source)
Sets the source XPath expression
|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isContentAware, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarnpublic void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecyclese - SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycledestroy in interface ManagedLifecyclepublic boolean mediate(MessageContext synCtx)
public void addCase(SwitchCase m)
m - the SwitchCaseMediator instance to be addedpublic List<SwitchCase> getCases()
public SynapseXPath getSource()
public void setSource(SynapseXPath source)
source - the XPath expression to be used as the sourcepublic SwitchCase getDefaultCase()
public void setDefaultCase(SwitchCase defaultCase)
defaultCase - A SwitchCase instance representing default caseCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.