|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.mediators.AbstractMediator
public abstract class AbstractMediator
This class is an abstract Mediator, that defines the logging and debugging elements of a mediator class.
| Field Summary | |
|---|---|
protected int |
parentTraceState
The parent tracing state |
protected int |
traceState
State of tracing for the current mediator |
| Constructor Summary | |
|---|---|
AbstractMediator()
|
|
| Method Summary | |
|---|---|
int |
getTraceState()
Returns the tracing state |
java.lang.String |
getType()
Returns the class name of the mediator |
void |
restoreTracingState(MessageContext synCtx)
This method is used to restore parent tracing state back |
void |
saveAndSetTraceState(MessageContext synCtx)
This method is used to save previous tracing state and set next the tracing state for a child mediator |
void |
setTraceState(int traceState)
Set the tracing state variable |
boolean |
shouldTrace(int parentTraceState)
Should this mediator perform tracing? True if its explicitly asked to trace, or its parent has been asked to trace and it does not reject it |
| 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 |
|---|
mediate |
| Field Detail |
|---|
protected int parentTraceState
protected int traceState
| Constructor Detail |
|---|
public AbstractMediator()
| Method Detail |
|---|
public java.lang.String getType()
getType in interface Mediatorpublic int getTraceState()
getTraceState in interface Mediatorpublic void setTraceState(int traceState)
setTraceState in interface MediatortraceState - public void saveAndSetTraceState(MessageContext synCtx)
synCtx - current messagepublic void restoreTracingState(MessageContext synCtx)
synCtx - the current messagepublic boolean shouldTrace(int parentTraceState)
parentTraceState - parents trace state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||