public class SwitchCase extends java.lang.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
|
java.util.regex.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(java.lang.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(java.util.regex.Pattern regex)
To set the regular expression pattern
|
void |
setStatisticIdForMediators(ArtifactHolder holder) |
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 mediatedpublic AnonymousListMediator getCaseMediator()
public void setCaseMediator(AnonymousListMediator caseMediator)
caseMediator
- anonymous sequence to be used for the case mediationpublic java.util.regex.Pattern getRegex()
public void setRegex(java.util.regex.Pattern regex)
regex
- Regular Expression to be matchedpublic boolean matches(java.lang.String value)
value
- value to be tested over the regular expression of matchpublic void setStatisticIdForMediators(ArtifactHolder holder)
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.