org.apache.synapse.mediators
Class MediatorFaultHandler

java.lang.Object
  extended by org.apache.synapse.FaultHandler
      extended by org.apache.synapse.mediators.MediatorFaultHandler

public class MediatorFaultHandler
extends FaultHandler

This implements the FaultHandler interface as a mediator fault handler. That is the fault handler is specified by a sequence and this handler implements the logic of handling the fault through the set of mediators present in the sequence.

See Also:
FaultHandler

Constructor Summary
MediatorFaultHandler(Mediator faultMediator)
          Constructs the FaultHandler object for handling mediator faults
 
Method Summary
 Mediator getFaultMediator()
          Getter for the mediator describing the fault sequence
 void onFault(MessageContext synCtx)
          Implements the fault handling method for the mediators (basically sequences)
 void setFaultMediator(Mediator faultMediator)
          Setter of the mediator describing the fault sequence
 
Methods inherited from class org.apache.synapse.FaultHandler
getStackTrace, handleFault, handleFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediatorFaultHandler

public MediatorFaultHandler(Mediator faultMediator)
Constructs the FaultHandler object for handling mediator faults

Parameters:
faultMediator - Mediator in which fault sequence is specified
Method Detail

onFault

public void onFault(MessageContext synCtx)
             throws SynapseException
Implements the fault handling method for the mediators (basically sequences)

Specified by:
onFault in class FaultHandler
Parameters:
synCtx - Synapse Message Context of which mediation occurs
Throws:
SynapseException - in case there is a failure in the fault execution
See Also:
FaultHandler.handleFault(org.apache.synapse.MessageContext)

getFaultMediator

public Mediator getFaultMediator()
Getter for the mediator describing the fault sequence

Returns:
Mediator specifying the fault sequence for mediator fault handler

setFaultMediator

public void setFaultMediator(Mediator faultMediator)
Setter of the mediator describing the fault sequence

Parameters:
faultMediator - Mediator specifying the fault sequence to be used by the handler


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.