Class EnvelopeImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, ElementExtensibleXMLObject, XMLObject, SOAPObject, Envelope

public class EnvelopeImpl extends AbstractExtensibleSOAPObject implements Envelope
Concrete implementation of Envelope.
  • Field Details

    • body

      private Body body
      SOAP body.
  • Constructor Details

    • EnvelopeImpl

      protected EnvelopeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - namespace of the element
      elementLocalName - name of the element
      namespacePrefix - namespace prefix of the element
  • Method Details

    • getHeader

      public Header getHeader()
      Gets the header of this envelope.
      Specified by:
      getHeader in interface Envelope
      Returns:
      the header of this envelope
    • setHeader

      public void setHeader(Header newHeader)
      Sets the header of this envelope.
      Specified by:
      setHeader in interface Envelope
      Parameters:
      newHeader - the header of this envelope
    • getBody

      public Body getBody()
      Gets the body of this envelope.
      Specified by:
      getBody in interface Envelope
      Returns:
      the body of this envelope
    • setBody

      public void setBody(Body newBody)
      Sets the body of this envelope.
      Specified by:
      setBody in interface Envelope
      Parameters:
      newBody - the body of this envelope
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Overrides:
      getOrderedChildren in class AbstractExtensibleSOAPObject
      Returns:
      ordered list of child elements