public class SwitchCase extends Object implements ManagedLifecycle
| Constructor and Description |
|---|
SwitchCase() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecyclese - SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycledestroy in interface ManagedLifecyclepublic boolean mediate(MessageContext synCtx)
synCtx - message context to be mediatedpublic 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 matchCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.