org.wso2.mercury.handlers
Class MercuryDuplicationHandler

java.lang.Object
  extended by org.apache.axis2.handlers.AbstractHandler
      extended by org.wso2.mercury.handlers.MercuryDuplicationHandler
All Implemented Interfaces:
org.apache.axis2.engine.Handler

public class MercuryDuplicationHandler
extends org.apache.axis2.handlers.AbstractHandler

this handler is useful only for response messages of duplex mode in out operations In Axis2 when it sends a message it registers the messageID with the Operation context in the Configuration context. When receiving the first response message it removes this entry. So sub sequence messages causes a Addressing validation fault since the entry is not there. But for RM it may receive duplicate messages. Drop these duplication messages here to avoid fault propergation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse
 
Field Summary
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
MercuryDuplicationHandler()
           
 
Method Summary
 org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
           
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MercuryDuplicationHandler

public MercuryDuplicationHandler()
Method Detail

invoke

public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
                                                          throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault


~~~~~~~~~~~~~~~~~~~ Mercury ~~~~~~~~~~~~~~~~~~~~~