|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.mediators.AbstractMediator
org.apache.synapse.mediators.AbstractListMediator
public abstract class AbstractListMediator
This class implements the base functionality of a List mediator
ListMediator| Field Summary | |
|---|---|
protected java.util.List |
mediators
|
| Fields inherited from class org.apache.synapse.mediators.AbstractMediator |
|---|
parentTraceState, traceState |
| Constructor Summary | |
|---|---|
AbstractListMediator()
|
|
| Method Summary | |
|---|---|
boolean |
addAll(java.util.List 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 |
Mediator |
getChild(int pos)
Returns the mediator at the specified position |
java.util.List |
getList()
Return the list of mediators of this List mediator instance |
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 |
|---|
getTraceState, getType, restoreTracingState, saveAndSetTraceState, setTraceState, shouldTrace |
| 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 |
| Field Detail |
|---|
protected java.util.List mediators
| Constructor Detail |
|---|
public AbstractListMediator()
| Method Detail |
|---|
public boolean mediate(MessageContext synCtx)
Mediator
mediate in interface MediatorsynCtx - the current message for mediation
public java.util.List getList()
ListMediator
getList in interface ListMediatorpublic boolean addChild(Mediator m)
ListMediator
addChild in interface ListMediatorm - the mediator to be added
public boolean addAll(java.util.List c)
ListMediator
addAll in interface ListMediatorc - the list of mediators to be added
public Mediator getChild(int pos)
ListMediator
getChild in interface ListMediatorpos - index of mediator to return
public boolean removeChild(Mediator m)
ListMediator
removeChild in interface ListMediatorm - mediator to be removed from this list, if present
public Mediator removeChild(int pos)
ListMediator
removeChild in interface ListMediatorpos - the index of the mediator to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||