java.lang.Object
org.cybergarage.soap.SOAP

public class SOAPextends Object
Utility class for SOAP (Simple Object Access Protocol) message handling.

This class provides static methods and constants for creating and manipulating SOAP messages used in UPnP control operations. It includes functionality for:

  • Creating SOAP envelope and body structures
  • Generating SOAP fault messages
  • Handling UPnP-specific SOAP error responses
  • SOAP XML namespace and content type management

The class primarily serves as a factory for creating SOAP message structures and provides constants for standard SOAP elements and namespaces used throughout the UPnP framework.

  • Field Details

  • Constructor Details

    • SOAP

      public SOAP()
      The envelope builders below and the element constants are all static, so an instance carries nothing.
  • Method Details

    • createEnvelopeBodyNode

      public static final Node createEnvelopeBodyNode()
      Builds an empty SOAP envelope with a Body child.
      Returns:
      the SOAP Envelope element, carrying an empty Body child, ready to have a SOAP Action element added to it
    • setXMLParser

      public static final void setXMLParser(Parser parser)
      Installs the shared XML parser used to parse SOAP messages.
      Parameters:
      parser - the parser to install as the shared XML parser used by this class when it has to parse a SOAP message itself
    • getXMLParser

      public static final Parser getXMLParser()
      Returns the shared XML parser.
      Returns:
      the shared XML parser installed by setXMLParser, or null if none has been set