|
||||||||||
| 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
org.apache.synapse.mediators.base.SequenceMediator
public class SequenceMediator
The Sequence mediator either refers to a named Sequence mediator instance or is a *Named* list/sequence of other (child) Mediators
If this instance defines a sequence mediator, then the name is required, and an errorHandler sequence name optional. If this instance refers to another (defined) sequence mediator, the errorHandler will not have a meaning, and if an error in encountered in the referred sequence, its errorHandler would execute.
| Field Summary |
|---|
| Fields inherited from class org.apache.synapse.mediators.AbstractListMediator |
|---|
mediators |
| Fields inherited from class org.apache.synapse.mediators.AbstractMediator |
|---|
log, trace, traceState |
| Constructor Summary | |
|---|---|
SequenceMediator()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy child mediators recursively |
String |
getAuditId()
|
String |
getErrorHandler()
|
String |
getFileName()
|
Value |
getKey()
To get the key which is used to pick the sequence definition from the local registry |
String |
getName()
To get the name of the sequence |
String |
getRegistryKey()
Return the registry key used to load this sequence dynamically |
void |
init(SynapseEnvironment se)
This method will ensure that each and every sequence wil only be initialized atmost once |
boolean |
isDynamic()
Is this a dynamic sequence? |
boolean |
isInitialized()
|
boolean |
mediate(MessageContext synCtx)
If this mediator refers to another named Sequence, execute that. |
void |
setDynamic(boolean dynamic)
Mark this as a dynamic sequence |
void |
setErrorHandler(String errorHandler)
|
void |
setFileName(String fileName)
|
void |
setKey(Value key)
To set the local registry key in order to pick the sequence definition |
void |
setName(String name)
setting the name of the sequence |
void |
setRegistryKey(String registryKey)
To get the registry key used to load this sequence dynamically |
| Methods inherited from class org.apache.synapse.mediators.AbstractListMediator |
|---|
addAll, addChild, getChild, getList, removeChild, removeChild |
| 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 |
| Constructor Detail |
|---|
public SequenceMediator()
| Method Detail |
|---|
public boolean mediate(MessageContext synCtx)
mediate in interface Mediatormediate in class AbstractListMediatorsynCtx - the synapse message
public void init(SynapseEnvironment se)
init in interface ManagedLifecycleinit in class AbstractListMediatorse - - enviorenment to be initializedpublic void destroy()
AbstractListMediator
destroy in interface ManagedLifecycledestroy in class AbstractListMediatorpublic String getName()
getName in interface Nameablepublic void setName(String name)
setName in interface Nameablename - the name of the this sequencepublic Value getKey()
public void setKey(Value key)
key - the local registry keypublic String getErrorHandler()
public void setErrorHandler(String errorHandler)
errorHandler - to used handle error will appear during the
mediation through this sequencepublic boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic - true if this is a dynamic sequencepublic String getRegistryKey()
public void setRegistryKey(String registryKey)
registryKey - returns the registry key which point to this sequencepublic String getAuditId()
public String getFileName()
public void setFileName(String fileName)
public boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||