public abstract class AbstractListMediator extends AbstractMediator implements ListMediator
ListMediator
Modifier and Type | Field and Description |
---|---|
protected List<Mediator> |
mediators
the list of child mediators held.
|
protected Pattern |
msgBuildFailureExpattern |
log, trace, traceState
Constructor and Description |
---|
AbstractListMediator() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(List<Mediator> c)
Appends all of the mediators in the specified collection to the end of this mediator's (children)
list, in the order that they are returned by the specified collection's iterator
|
boolean |
addChild(Mediator m)
Appends the specified mediator to the end of this mediator's (children) list
|
void |
destroy()
Destroy child mediators recursively
|
Mediator |
getChild(int pos)
Returns the mediator at the specified position
|
List<Mediator> |
getList()
Return the list of mediators of this List mediator instance
|
void |
init(SynapseEnvironment se)
Initialize child mediators recursively
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
boolean |
mediate(MessageContext synCtx,
int mediatorPosition) |
Mediator |
removeChild(int pos)
Removes the mediator at the specified position in this list
|
boolean |
removeChild(Mediator m)
Removes the first occurrence in this list of the specified mediator
|
void |
setStatisticIdForMediators(ArtifactHolder holder) |
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, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMediatorName, getMediatorPosition, getShortDescription, getTraceState, getType, isContentAltering, reportCloseStatistics, reportOpenStatistics, setComponentStatisticsId, setMediatorPosition, setShortDescription, setTraceState
getDescription, setDescription
protected Pattern msgBuildFailureExpattern
public boolean mediate(MessageContext synCtx)
Mediator
public boolean mediate(MessageContext synCtx, int mediatorPosition)
public List<Mediator> getList()
ListMediator
getList
in interface ListMediator
public boolean addChild(Mediator m)
ListMediator
addChild
in interface ListMediator
m
- the mediator to be addedpublic boolean addAll(List<Mediator> c)
ListMediator
addAll
in interface ListMediator
c
- the list of mediators to be addedpublic Mediator getChild(int pos)
ListMediator
getChild
in interface ListMediator
pos
- index of mediator to returnpublic boolean removeChild(Mediator m)
ListMediator
removeChild
in interface ListMediator
m
- mediator to be removed from this list, if presentpublic Mediator removeChild(int pos)
ListMediator
removeChild
in interface ListMediator
pos
- the index of the mediator to removepublic void init(SynapseEnvironment se)
init
in interface ManagedLifecycle
se
- synapse environmentpublic void destroy()
destroy
in interface ManagedLifecycle
public boolean isContentAware()
isContentAware
in interface Mediator
isContentAware
in class AbstractMediator
public void setStatisticIdForMediators(ArtifactHolder holder)
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.