org.apache.sandesha2.util
Class FaultManager

java.lang.Object
  extended byorg.apache.sandesha2.util.FaultManager

public class FaultManager
extends java.lang.Object

Has logic to check for possible RM related faults and create it.

Author:
Chamikara Jayalath , Sanka Samaranayaka

Constructor Summary
FaultManager()
           
 
Method Summary
 RMMsgContext checkForInvalidAcknowledgement(org.apache.axis2.context.MessageContext msgCtx)
          Check weather the Acknowledgement is invalid and generate a fault if it is.
 RMMsgContext checkForPossibleFaults(org.apache.axis2.context.MessageContext msgCtx)
           
 RMMsgContext checkForUnknownSequence(org.apache.axis2.context.MessageContext messageContext)
          Check whether a Sequence message (a) belongs to a unknown sequence (generates an UnknownSequence fault) (b) message number exceeds a predifined limit ( genenrates a Message Number Rollover fault)
 RMMsgContext getFault(RMMsgContext referenceRMMsgContext, FaultData data)
          Returns a RMMessageContext for the fault message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultManager

public FaultManager()
Method Detail

checkForPossibleFaults

public RMMsgContext checkForPossibleFaults(org.apache.axis2.context.MessageContext msgCtx)
                                    throws SandeshaException
Throws:
SandeshaException

checkForUnknownSequence

public RMMsgContext checkForUnknownSequence(org.apache.axis2.context.MessageContext messageContext)
                                     throws SandeshaException
Check whether a Sequence message (a) belongs to a unknown sequence (generates an UnknownSequence fault) (b) message number exceeds a predifined limit ( genenrates a Message Number Rollover fault)

Returns:
@throws SandeshaException
Throws:
SandeshaException

checkForInvalidAcknowledgement

public RMMsgContext checkForInvalidAcknowledgement(org.apache.axis2.context.MessageContext msgCtx)
                                            throws SandeshaException
Check weather the Acknowledgement is invalid and generate a fault if it is.

Parameters:
msgCtx -
Returns:
@throws SandeshaException
Throws:
SandeshaException

getFault

public RMMsgContext getFault(RMMsgContext referenceRMMsgContext,
                             FaultData data)
                      throws SandeshaException
Returns a RMMessageContext for the fault message. Data for generating the fault is given in the data parameter.

Parameters:
referenceRMMsgContext -
data -
Returns:
Throws:
SandeshaException


Copyright © 2005 Apache Web Services. All Rights Reserved.