public class FilterMediator extends AbstractListMediator implements FilterMediator, FlowContinuableMediator
mediators, msgBuildFailureExpatternlog, 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, setStatisticIdForMediatorsauditLog, 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, unregisterMediationFlowPointclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, addChild, getChild, getList, removeChild, removeChildgetMediatorName, getMediatorPosition, getShortDescription, getTraceState, getType, isContentAltering, reportCloseStatistics, reportOpenStatistics, setMediatorPosition, setShortDescription, 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 mediate(MessageContext synCtx, ContinuationState continuationState)
FlowContinuableMediatormediate in interface FlowContinuableMediatorsynCtx - MessageContextcontinuationState - ContinuationStatepublic boolean test(MessageContext synCtx)
test in interface FilterMediatorsynCtx - 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 MediatorisContentAware in class AbstractListMediatorpublic void setComponentStatisticsId(ArtifactHolder holder)
setComponentStatisticsId in interface MediatorsetComponentStatisticsId in class AbstractMediatorCopyright © 2005–2024 Apache Software Foundation. All rights reserved.