Class ForEachMediator
- java.lang.Object
-
- org.apache.synapse.mediators.AbstractMediator
-
- org.apache.synapse.mediators.builtin.ForEachMediator
-
- All Implemented Interfaces:
AspectConfigurable,ManagedLifecycle,Mediator,SynapseArtifact
public class ForEachMediator extends AbstractMediator implements ManagedLifecycle
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
-
-
Constructor Summary
Constructors Constructor Description ForEachMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()This method should implement the destroying of the implemented parts of the configuration.SynapsePathgetExpression()StringgetId()SequenceMediatorgetSequence()StringgetSequenceRef()voidinit(SynapseEnvironment se)This method should implement the initialization of the implemented parts of the configuration.booleanmediate(MessageContext synCtx)Invokes the mediator passing the current message for mediation.voidsetExpression(SynapsePath expression)voidsetId(String id)voidsetSequence(SequenceMediator sequence)voidsetSequenceRef(String sequenceKey)-
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
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, isContentAware, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
-
-
-
-
Method Detail
-
mediate
public boolean mediate(MessageContext synCtx)
Description copied from interface:MediatorInvokes 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.
-
init
public void init(SynapseEnvironment se)
Description copied from interface:ManagedLifecycleThis method should implement the initialization of the implemented parts of the configuration.- Specified by:
initin interfaceManagedLifecycle- Parameters:
se- SynapseEnvironment to be used for initialization
-
destroy
public void destroy()
Description copied from interface:ManagedLifecycleThis method should implement the destroying of the implemented parts of the configuration.- Specified by:
destroyin interfaceManagedLifecycle
-
getExpression
public SynapsePath getExpression()
-
setExpression
public void setExpression(SynapsePath expression)
-
getSequence
public SequenceMediator getSequence()
-
setSequence
public void setSequence(SequenceMediator sequence)
-
getSequenceRef
public String getSequenceRef()
-
setSequenceRef
public void setSequenceRef(String sequenceKey)
-
getId
public String getId()
-
setId
public void setId(String id)
-
-