org.apache.sandesha2.util
Class MsgInitializer

java.lang.Object
  extended by org.apache.sandesha2.util.MsgInitializer

public class MsgInitializer
extends java.lang.Object

This class is used to create an RMMessageContext out of an MessageContext.


Constructor Summary
MsgInitializer()
           
 
Method Summary
static RMMsgContext initializeMessage(org.apache.axis2.context.MessageContext ctx)
          Called to create a rmMessageContext out of an message context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgInitializer

public MsgInitializer()
Method Detail

initializeMessage

public static RMMsgContext initializeMessage(org.apache.axis2.context.MessageContext ctx)
                                      throws org.apache.axis2.AxisFault
Called to create a rmMessageContext out of an message context. Finds out things like rm version and message type as well.

Parameters:
ctx -
assumedRMNamespace - this is used for validation (to find out weather the rmNamespace of the current message is equal to the regietered rmNamespace of the sequence). If null validation will not happen.
Returns:
Throws:
SandeshaException
org.apache.axis2.AxisFault


Copyright © The Apache Software Foundation. All Rights Reserved.