|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.config.xml.SwitchCase
public class SwitchCase
A SwitchCase define a case element of Switch Mediator and It has a list mediator and a regex that is matched by its owning SwitchMediator for selection. If any SwitchCase has selected ,Then the list mediator of it, will responsible for message mediation
Constructor Summary | |
---|---|
SwitchCase()
|
Method Summary | |
---|---|
void |
destroy()
This method should implement the destroying of the implemented parts of the configuration. |
AnonymousListMediator |
getCaseMediator()
To get list mediator of this case element |
Pattern |
getRegex()
To get the regular expression pattern |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the implemented parts of the configuration. |
boolean |
matches(String value)
To evaluate regular expression pattern to a get switch case |
boolean |
mediate(MessageContext synCtx)
To delegate message mediation to list mediator |
void |
setCaseMediator(AnonymousListMediator caseMediator)
To set the set of case mediators |
void |
setRegex(Pattern regex)
To set the regular expression pattern |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwitchCase()
Method Detail |
---|
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public boolean mediate(MessageContext synCtx)
synCtx
- message context to be mediated
public AnonymousListMediator getCaseMediator()
public void setCaseMediator(AnonymousListMediator caseMediator)
caseMediator
- anonymous sequence to be used for the case mediationpublic Pattern getRegex()
public void setRegex(Pattern regex)
regex
- Regular Expression to be matchedpublic boolean matches(String value)
value
- value to be tested over the regular expression of match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |