Class SOAPEnvelopeImpl

  • All Implemented Interfaces:
    org.apache.axiom.om.impl.OMContainerEx, org.apache.axiom.om.impl.OMNodeEx, org.apache.axiom.om.OMConstants, org.apache.axiom.om.OMContainer, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMNode, org.apache.axiom.om.OMSerializable, org.apache.axiom.soap.SOAPEnvelope

    public class SOAPEnvelopeImpl
    extends SOAPElement
    implements org.apache.axiom.soap.SOAPEnvelope, org.apache.axiom.om.OMConstants
    Class SOAPEnvelopeImpl
    • Constructor Detail

      • SOAPEnvelopeImpl

        public SOAPEnvelopeImpl​(org.apache.axiom.om.OMXMLParserWrapper builder,
                                org.apache.axiom.soap.SOAPFactory factory)
        Constructor
        Parameters:
        builder - the OMXMLParserWrapper building this envelope
        factory - the SOAPFactory building this envelope
      • SOAPEnvelopeImpl

        public SOAPEnvelopeImpl​(org.apache.axiom.om.OMNamespace ns,
                                org.apache.axiom.soap.SOAPFactory factory)
        Constructor
        Parameters:
        ns - OMNamespace for this envelope
        factory - SOAPFactory associated with this envelope
    • Method Detail

      • getVersion

        public org.apache.axiom.soap.SOAPVersion getVersion()
        Specified by:
        getVersion in interface org.apache.axiom.soap.SOAPEnvelope
      • getHeader

        public org.apache.axiom.soap.SOAPHeader getHeader()
                                                   throws org.apache.axiom.om.OMException
        Returns the SOAPHeader object for this SOAPEnvelope object.

        This SOAPHeader will just be a container for all the headers in the OMMessage

        Specified by:
        getHeader in interface org.apache.axiom.soap.SOAPEnvelope
        Returns:
        the SOAPHeader object or null if there is none
        Throws:
        org.apache.axiom.om.OMException - if there is a problem obtaining the SOAPHeader object
      • addChild

        public void addChild​(org.apache.axiom.om.OMNode child)
        Add a SOAPHeader or SOAPBody object
        Specified by:
        addChild in interface org.apache.axiom.om.OMContainer
        Overrides:
        addChild in class OMElementImpl
        Parameters:
        child - an OMNode to add - must be either a SOAPHeader or a SOAPBody
      • getBody

        public org.apache.axiom.soap.SOAPBody getBody()
                                               throws org.apache.axiom.om.OMException
        Returns the SOAPBody object associated with this SOAPEnvelope object.

        This SOAPBody will just be a container for all the BodyElements in the OMMessage

        Specified by:
        getBody in interface org.apache.axiom.soap.SOAPEnvelope
        Returns:
        the SOAPBody object for this SOAPEnvelope object or null if there is none
        Throws:
        org.apache.axiom.om.OMException - if there is a problem obtaining the SOAPBody object
      • detach

        public org.apache.axiom.om.OMNode detach()
                                          throws org.apache.axiom.om.OMException
        Method detach
        Specified by:
        detach in interface org.apache.axiom.om.OMNode
        Overrides:
        detach in class OMElementImpl
        Throws:
        org.apache.axiom.om.OMException
      • checkParent

        protected void checkParent​(org.apache.axiom.om.OMElement parent)
                            throws org.apache.axiom.soap.SOAPProcessingException
        Description copied from class: SOAPElement
        This has to be implemented by all the derived classes to check for the correct parent.
        Specified by:
        checkParent in class SOAPElement
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • hasFault

        public boolean hasFault()
        Specified by:
        hasFault in interface org.apache.axiom.soap.SOAPEnvelope
      • getSOAPBodyFirstElementLocalName

        public String getSOAPBodyFirstElementLocalName()
        Specified by:
        getSOAPBodyFirstElementLocalName in interface org.apache.axiom.soap.SOAPEnvelope
      • getSOAPBodyFirstElementNS

        public org.apache.axiom.om.OMNamespace getSOAPBodyFirstElementNS()
        Specified by:
        getSOAPBodyFirstElementNS in interface org.apache.axiom.soap.SOAPEnvelope