public class FilterMediator extends AbstractListMediator implements FilterMediator
mediatorslog, trace, traceState| Constructor and Description |
|---|
FilterMediator() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy child mediators recursively
|
String |
getElseKey() |
ListMediator |
getElseMediator() |
Pattern |
getRegex() |
SynapseXPath |
getSource() |
String |
getThenKey() |
SynapseXPath |
getXpath() |
void |
init(SynapseEnvironment se)
Initialize child mediators recursively
|
boolean |
isContentAware() |
boolean |
isThenElementPresent() |
boolean |
mediate(MessageContext synCtx)
Executes the list of sub/child mediators, if the filter condition is satisfied
|
void |
setElseKey(String elseKey) |
void |
setElseMediator(ListMediator elseMediator) |
void |
setRegex(Pattern regex) |
void |
setSource(SynapseXPath source) |
void |
setThenElementPresent(boolean thenElementPresent) |
void |
setThenKey(String thenKey) |
void |
setXpath(SynapseXPath xpath) |
boolean |
test(MessageContext synCtx)
Tests the supplied condition after evaluation against the given XPath
or Regex (against a source XPath).
|
addAll, addChild, getChild, getList, removeChild, removeChildauditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, addChild, getChild, getList, removeChild, removeChildgetTraceState, getType, setTraceStategetDescription, setDescriptionpublic void init(SynapseEnvironment se)
AbstractListMediatorinit in interface ManagedLifecycleinit in class AbstractListMediatorse - synapse environmentpublic void destroy()
AbstractListMediatordestroy in interface ManagedLifecycledestroy in class AbstractListMediatorpublic boolean mediate(MessageContext synCtx)
mediate in interface Mediatormediate in class AbstractListMediatorsynCtx - the current messagepublic boolean test(MessageContext synCtx)
test in interface FilterMediatorsynCtx - the current message for evaluation of the test conditionpublic SynapseXPath getSource()
public void setSource(SynapseXPath source)
public Pattern getRegex()
public void setRegex(Pattern regex)
public SynapseXPath getXpath()
public void setXpath(SynapseXPath xpath)
public ListMediator getElseMediator()
public void setElseMediator(ListMediator elseMediator)
public boolean isThenElementPresent()
public void setThenElementPresent(boolean thenElementPresent)
public String getThenKey()
public void setThenKey(String thenKey)
public String getElseKey()
public void setElseKey(String elseKey)
public boolean isContentAware()
isContentAware in interface MediatorisContentAware in class AbstractListMediatorCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.