Package org.apache.synapse.mediators
Class MediatorFaultHandler
- java.lang.Object
-
- org.apache.synapse.FaultHandler
-
- 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
Constructors Constructor Description MediatorFaultHandler(Mediator faultMediator)
Constructs the FaultHandler object for handling mediator faults
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mediator
getFaultMediator()
Getter for the mediator describing the fault sequencevoid
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
executeExtendedSynapseHandlerOnFault, getStackTrace, handleFault, handleFault
-
-
-
-
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 classFaultHandler
- 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
-
-