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, unregisterMediationFlowPoint
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public boolean mediate(MessageContext synCtx)
public boolean mediate(MessageContext synCtx, ContinuationState continuationState)
FlowContinuableMediator
mediate
in interface FlowContinuableMediator
synCtx
- 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 Mediator
isContentAware
in class AbstractMediator
public void setComponentStatisticsId(ArtifactHolder holder)
setComponentStatisticsId
in interface Mediator
setComponentStatisticsId
in class AbstractMediator
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.