org.apache.synapse.mediators.filters
Class OutMediator

java.lang.Object
  extended by org.apache.synapse.mediators.AbstractMediator
      extended by org.apache.synapse.mediators.AbstractListMediator
          extended by 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()

Field Summary
 
Fields inherited from class org.apache.synapse.mediators.AbstractListMediator
mediators
 
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
 
Constructor Summary
OutMediator()
           
 
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.AbstractListMediator
addAll, addChild, destroy, getChild, getList, init, removeChild, removeChild
 
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
 
Methods inherited from interface org.apache.synapse.mediators.ListMediator
addAll, addChild, getChild, getList, removeChild, removeChild
 
Methods inherited from interface org.apache.synapse.Mediator
getTraceState, getType, setTraceState
 
Methods inherited from interface org.apache.synapse.SynapseArtifact
getDescription, setDescription
 
Methods inherited from interface org.apache.synapse.ManagedLifecycle
destroy, init
 

Constructor Detail

OutMediator

public OutMediator()
Method Detail

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.