public class FilterMediator extends AbstractListMediator implements FilterMediator
mediators
log, 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, removeChild
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAll, addChild, getChild, getList, removeChild, removeChild
getTraceState, getType, setTraceState
getDescription, setDescription
public void init(SynapseEnvironment se)
AbstractListMediator
init
in interface ManagedLifecycle
init
in class AbstractListMediator
se
- synapse environmentpublic void destroy()
AbstractListMediator
destroy
in interface ManagedLifecycle
destroy
in class AbstractListMediator
public boolean mediate(MessageContext synCtx)
mediate
in interface Mediator
mediate
in class AbstractListMediator
synCtx
- the current messagepublic boolean test(MessageContext synCtx)
test
in interface FilterMediator
synCtx
- 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 Mediator
isContentAware
in class AbstractListMediator
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.