|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.mediators.AbstractMediator org.apache.synapse.mediators.AbstractListMediator
public abstract class AbstractListMediator
This is the base class for all List mediators
ListMediator
Field Summary | |
---|---|
protected List<Mediator> |
mediators
the list of child mediators held. |
Fields inherited from class org.apache.synapse.mediators.AbstractMediator |
---|
log, trace, traceState |
Constructor Summary | |
---|---|
AbstractListMediator()
|
Method Summary | |
---|---|
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 |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation. |
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 |
Methods inherited from class org.apache.synapse.mediators.AbstractMediator |
---|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.synapse.Mediator |
---|
getTraceState, getType, setTraceState |
Methods inherited from interface org.apache.synapse.SynapseArtifact |
---|
getDescription, setDescription |
Field Detail |
---|
protected final List<Mediator> mediators
Constructor Detail |
---|
public AbstractListMediator()
Method Detail |
---|
public boolean mediate(MessageContext synCtx)
Mediator
mediate
in interface Mediator
synCtx
- the current message for mediation
public List<Mediator> getList()
ListMediator
getList
in interface ListMediator
public boolean addChild(Mediator m)
ListMediator
addChild
in interface ListMediator
m
- the mediator to be added
public boolean addAll(List<Mediator> c)
ListMediator
addAll
in interface ListMediator
c
- the list of mediators to be added
public Mediator getChild(int pos)
ListMediator
getChild
in interface ListMediator
pos
- index of mediator to return
public boolean removeChild(Mediator m)
ListMediator
removeChild
in interface ListMediator
m
- mediator to be removed from this list, if present
public Mediator removeChild(int pos)
ListMediator
removeChild
in interface ListMediator
pos
- the index of the mediator to remove
public void init(SynapseEnvironment se)
init
in interface ManagedLifecycle
se
- synapse environmentpublic void destroy()
destroy
in interface ManagedLifecycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |