org.apache.sandesha
Class EnvelopeCreator

java.lang.Object
  extended byorg.apache.sandesha.EnvelopeCreator

public class EnvelopeCreator
extends java.lang.Object

This class creates the SOAPEnvelopes using the RMMessageContexts passed-in to various methods. All the methods follow a simple process of creating SOAPEnvelopes using the WS-Addressing and, WS-RM headers and Body Elements.

Author:
Jaliya Ekanayake, Chamikara Jayalath

Constructor Summary
EnvelopeCreator()
           
 
Method Summary
static void addNamespaceDeclarations(SOAPEnvelope soapEnv)
           
static SOAPEnvelope createAcknowledgementEnvelope(RMMessageContext rmMessageContext, java.lang.String toAddress, java.util.List ackRangeList)
           
static SOAPEnvelope createBasicEnvelop()
           
static SOAPEnvelope createCreateSequenceEnvelope(RMMessageContext rmMsgCtx)
           
static SOAPEnvelope createCreateSequenceResponseEnvelope(java.lang.String seqId, RMMessageContext rmMessageContext, boolean hasOffer, boolean offerAccepted)
           
static SOAPEnvelope createServiceRequestEnvelope(RMMessageContext rmMessageContext)
           
static SOAPEnvelope createServiceResponseEnvelope(RMMessageContext rmMessageContext)
           
static SOAPEnvelope createTerminatSeqMessage(RMMessageContext rmMessageContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvelopeCreator

public EnvelopeCreator()
Method Detail

createCreateSequenceResponseEnvelope

public static SOAPEnvelope createCreateSequenceResponseEnvelope(java.lang.String seqId,
                                                                RMMessageContext rmMessageContext,
                                                                boolean hasOffer,
                                                                boolean offerAccepted)
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

createCreateSequenceEnvelope

public static SOAPEnvelope createCreateSequenceEnvelope(RMMessageContext rmMsgCtx)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

createBasicEnvelop

public static SOAPEnvelope createBasicEnvelop()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

addNamespaceDeclarations

public static void addNamespaceDeclarations(SOAPEnvelope soapEnv)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

createAcknowledgementEnvelope

public static SOAPEnvelope createAcknowledgementEnvelope(RMMessageContext rmMessageContext,
                                                         java.lang.String toAddress,
                                                         java.util.List ackRangeList)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

createServiceResponseEnvelope

public static SOAPEnvelope createServiceResponseEnvelope(RMMessageContext rmMessageContext)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

createServiceRequestEnvelope

public static SOAPEnvelope createServiceRequestEnvelope(RMMessageContext rmMessageContext)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

createTerminatSeqMessage

public static SOAPEnvelope createTerminatSeqMessage(RMMessageContext rmMessageContext)
                                             throws java.lang.Exception
Throws:
java.lang.Exception