org.apache.synapse.mediators.filters
Class OutMediator
java.lang.Object
org.apache.synapse.mediators.AbstractMediator
org.apache.synapse.mediators.AbstractListMediator
org.apache.synapse.mediators.filters.OutMediator
- All Implemented Interfaces:
- AspectConfigurable, ManagedLifecycle, Mediator, FilterMediator, ListMediator, SynapseArtifact
public class OutMediator
- extends AbstractListMediator
- implements FilterMediator
The Out Mediator acts only on "outgoing" messages from synapse. This is
performed by looking at the result of MessageContext#isResponse()
- See Also:
MessageContext.isResponse()
Method Summary |
boolean |
mediate(MessageContext synCtx)
Executes the list of sub/child mediators, if the filter condition is satisfied |
boolean |
test(MessageContext synCtx)
Apply mediation only on response messages |
Methods inherited from class org.apache.synapse.mediators.AbstractMediator |
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutMediator
public OutMediator()
mediate
public boolean mediate(MessageContext synCtx)
- Executes the list of sub/child mediators, if the filter condition is satisfied
- Specified by:
mediate
in interface Mediator
- Overrides:
mediate
in class AbstractListMediator
- Parameters:
synCtx
- the current message
- Returns:
- true if filter condition fails. else returns as per List mediator semantics
test
public boolean test(MessageContext synCtx)
- Apply mediation only on response messages
- Specified by:
test
in interface FilterMediator
- Parameters:
synCtx
- the message context
- Returns:
- MessageContext#isResponse()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.