org.opensaml.ws.soap.util
Class SOAPHelper

java.lang.Object
  extended by org.opensaml.ws.soap.util.SOAPHelper

public class SOAPHelper
extends java.lang.Object

Helper methods for working with SOAP.


Method Summary
static void addActorAttribute(AttributeExtensibleXMLObject soapObject, java.lang.String actorURI)
          Adds an "actor" attribute to the given SOAP object.
static void addEncodingStyle(AttributeExtensibleXMLObject soapObject, java.lang.String encodingStyle)
          Adds a single encoding style to the given SOAP object.
static void addEncodingStyles(AttributeExtensibleXMLObject soapObject, java.util.List<java.lang.String> encodingStyles)
          Adds an "encodingStyle" attribute to the given SOAP object.
static void addMustUnderstandAttribute(AttributeExtensibleXMLObject soapObject, boolean mustUnderstand)
          Adds a "mustUnderstand" attribute to the given SOAP object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addMustUnderstandAttribute

public static void addMustUnderstandAttribute(AttributeExtensibleXMLObject soapObject,
                                              boolean mustUnderstand)
Adds a "mustUnderstand" attribute to the given SOAP object.

Parameters:
soapObject - the SOAP object to add the attribute to
mustUnderstand - whether mustUnderstand is true or false

addActorAttribute

public static void addActorAttribute(AttributeExtensibleXMLObject soapObject,
                                     java.lang.String actorURI)
Adds an "actor" attribute to the given SOAP object.

Parameters:
soapObject - the SOAP object to add the attribute to
actorURI - the URI of the actor

addEncodingStyle

public static void addEncodingStyle(AttributeExtensibleXMLObject soapObject,
                                    java.lang.String encodingStyle)
Adds a single encoding style to the given SOAP object. If existing encodingStyles are present, the given style will be added to the existing list.

Parameters:
soapObject - the SOAP object to add the attribute to
encodingStyle - the encoding style to add

addEncodingStyles

public static void addEncodingStyles(AttributeExtensibleXMLObject soapObject,
                                     java.util.List<java.lang.String> encodingStyles)
Adds an "encodingStyle" attribute to the given SOAP object.

Parameters:
soapObject - the SOAP object to add the attribute to
encodingStyles - the list of encoding styles to add