|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mediator
All Synapse mediators must implement this Mediator interface. As a message passes through the Synapse system, each mediator's mediate() method is invoked in the sequence/order defined in the SynapseConfiguration.
It is recommended to extend the abstract class
AbstractMediator
or the
AbstractListMediator
as appropriate instead of
directly implementing this interface
AbstractMediator
Method Summary | |
---|---|
int |
getTraceState()
This is used to check whether the tracing should be enabled on the current mediator or not |
String |
getType()
This is used for debugging purposes and exposes the type of the current mediator for logging and debugging purposes |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation. |
void |
setTraceState(int traceState)
This is used to set the value of tracing enable variable |
Methods inherited from interface org.apache.synapse.SynapseArtifact |
---|
getDescription, setDescription |
Method Detail |
---|
boolean mediate(MessageContext synCtx)
synCtx
- the current message for mediation
String getType()
int getTraceState()
void setTraceState(int traceState)
traceState
- Set whether the tracing is enabled or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |