cgl.narada.wsinfra.util
Class SoapMessageAlteration

java.lang.Object
  extended by cgl.narada.wsinfra.util.SoapMessageAlteration

public class SoapMessageAlteration
extends Object

This is a utility class which facilitates the addition of elements to Header or Body of the SOAP envelope.


Method Summary
 void addToSoapBody(EnvelopeDocument envelopeDocument, XmlObject xmlObject)
          Adds the specified XmlObject to the Body of the SOAP message
 boolean addToSoapHeader(EnvelopeDocument envelopeDocument, QName qName, String value)
          Adds a QName and the corresponding value to a SOAP Header.
 boolean addToSoapHeader(EnvelopeDocument envelopeDocument, QName qName, String value, QName attributeQName, String attributeValue)
          Adds a QName with a specific value along with an attribute and attribute value to a soap header.
 void addToSoapHeader(EnvelopeDocument envelopeDocument, XmlObject xmlObject)
          Adds the specified XmlObject to the Header of the SOAP message
 void addToSoapHeaderAsLastChild(EnvelopeDocument envelopeDocument, XmlObject xmlObject)
          Adds the specified XmlObject to the Header of the SOAP message
 boolean addToSoapHeaderWithActorAttribute(EnvelopeDocument envelopeDocument, QName qName, String value, String actorAttributeValue)
          Adds a QName with a specific value along with the SOAP actor attribute based on the specified attribute value to the SOAP Header.
static SoapMessageAlteration getInstance()
           
 boolean removeFromSoapHeader(EnvelopeDocument envelopeDocument, QName qName)
          Removes a QName and corresponding text value encapsulated by it from the specified document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SoapMessageAlteration getInstance()

addToSoapBody

public void addToSoapBody(EnvelopeDocument envelopeDocument,
                          XmlObject xmlObject)
Adds the specified XmlObject to the Body of the SOAP message


addToSoapHeader

public void addToSoapHeader(EnvelopeDocument envelopeDocument,
                            XmlObject xmlObject)
Adds the specified XmlObject to the Header of the SOAP message


addToSoapHeaderAsLastChild

public void addToSoapHeaderAsLastChild(EnvelopeDocument envelopeDocument,
                                       XmlObject xmlObject)
Adds the specified XmlObject to the Header of the SOAP message


addToSoapHeader

public boolean addToSoapHeader(EnvelopeDocument envelopeDocument,
                               QName qName,
                               String value)
Adds a QName and the corresponding value to a SOAP Header. This method returns true, if the operation was successful and false otherwise.


addToSoapHeader

public boolean addToSoapHeader(EnvelopeDocument envelopeDocument,
                               QName qName,
                               String value,
                               QName attributeQName,
                               String attributeValue)
Adds a QName with a specific value along with an attribute and attribute value to a soap header. This method returns true, if the operation was successful and false otherwise.


addToSoapHeaderWithActorAttribute

public boolean addToSoapHeaderWithActorAttribute(EnvelopeDocument envelopeDocument,
                                                 QName qName,
                                                 String value,
                                                 String actorAttributeValue)
Adds a QName with a specific value along with the SOAP actor attribute based on the specified attribute value to the SOAP Header. This method returns true, if the operation was successful and false otherwise.


removeFromSoapHeader

public boolean removeFromSoapHeader(EnvelopeDocument envelopeDocument,
                                    QName qName)
Removes a QName and corresponding text value encapsulated by it from the specified document. This method returns true, if the operation was successful and false otherwise.



For comments and suggestions please send e-mail to The NaradaBrokering Project