public class SwitchMediator extends AbstractMediator implements ManagedLifecycle, FlowContinuableMediator
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
|
SynapsePath |
getSource()
Return the source Path expression set
|
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Iterate over switch cases and find match and execute selected sequence
|
boolean |
mediate(MessageContext synCtx,
ContinuationState continuationState)
Mediate the message using a ContinuationState.
|
void |
setComponentStatisticsId(ArtifactHolder holder) |
void |
setDefaultCase(SwitchCase defaultCase)
setting the default case ...which contains mediators to invoke when no case condition satisfy
|
void |
setSource(SynapsePath source)
Sets the source Path expression
|
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPointpublic 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 boolean mediate(MessageContext synCtx, ContinuationState continuationState)
FlowContinuableMediatormediate in interface FlowContinuableMediatorsynCtx - MessageContextcontinuationState - ContinuationStatepublic void addCase(SwitchCase m)
m - the SwitchCaseMediator instance to be addedpublic List<SwitchCase> getCases()
public SynapsePath getSource()
public void setSource(SynapsePath source)
source - the Path expression to be used as the sourcepublic SwitchCase getDefaultCase()
public void setDefaultCase(SwitchCase defaultCase)
defaultCase - A SwitchCase instance representing default casepublic boolean isContentAware()
isContentAware in interface MediatorisContentAware in class AbstractMediatorpublic void setComponentStatisticsId(ArtifactHolder holder)
setComponentStatisticsId in interface MediatorsetComponentStatisticsId in class AbstractMediatorCopyright © 2005–2019 Apache Software Foundation. All rights reserved.