public class FilterMediator extends AbstractListMediator implements FilterMediator, FlowContinuableMediator
mediators, msgBuildFailureExpattern
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() |
SynapsePath |
getSource() |
String |
getThenKey() |
SynapsePath |
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
|
boolean |
mediate(MessageContext synCtx,
ContinuationState continuationState)
Mediate the message using a ContinuationState.
|
void |
setComponentStatisticsId(ArtifactHolder holder) |
void |
setElseKey(String elseKey) |
void |
setElseMediator(AnonymousListMediator elseMediator) |
void |
setRegex(Pattern regex) |
void |
setSource(SynapsePath source) |
void |
setThenElementPresent(boolean thenElementPresent) |
void |
setThenKey(String thenKey) |
void |
setXpath(SynapsePath xpath) |
boolean |
test(MessageContext synCtx)
Tests the supplied condition after evaluation against the given XPath
or Regex (against a source XPath).
|
addAll, addChild, addChild, getChild, getList, mediate, removeChild, removeChild, setStatisticIdForMediators
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAll, addChild, getChild, getList, removeChild, removeChild
getMediatorName, getMediatorPosition, getShortDescription, getTraceState, getType, isContentAltering, reportCloseStatistics, reportOpenStatistics, setMediatorPosition, setShortDescription, 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 mediate(MessageContext synCtx, ContinuationState continuationState)
FlowContinuableMediator
mediate
in interface FlowContinuableMediator
synCtx
- MessageContextcontinuationState
- ContinuationStatepublic boolean test(MessageContext synCtx)
test
in interface FilterMediator
synCtx
- the current message for evaluation of the test conditionpublic SynapsePath getSource()
public void setSource(SynapsePath source)
public Pattern getRegex()
public void setRegex(Pattern regex)
public SynapsePath getXpath()
public void setXpath(SynapsePath xpath)
public ListMediator getElseMediator()
public void setElseMediator(AnonymousListMediator 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
public void setComponentStatisticsId(ArtifactHolder holder)
setComponentStatisticsId
in interface Mediator
setComponentStatisticsId
in class AbstractMediator
Copyright © 2005–2024 Apache Software Foundation. All rights reserved.