Class SOAPBodyImpl

  • 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.SOAPBody
    Direct Known Subclasses:
    SOAP11BodyImpl, SOAP12BodyImpl

    public abstract class SOAPBodyImpl
    extends SOAPElement
    implements org.apache.axiom.soap.SOAPBody, org.apache.axiom.om.OMConstants
    Class SOAPBodyImpl
    • Constructor Detail

      • SOAPBodyImpl

        protected SOAPBodyImpl​(String localName,
                               org.apache.axiom.om.OMNamespace ns,
                               org.apache.axiom.soap.SOAPFactory factory)
      • SOAPBodyImpl

        public SOAPBodyImpl​(org.apache.axiom.soap.SOAPEnvelope envelope,
                            org.apache.axiom.soap.SOAPFactory factory)
                     throws org.apache.axiom.soap.SOAPProcessingException
        Parameters:
        envelope -
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • SOAPBodyImpl

        public SOAPBodyImpl​(org.apache.axiom.soap.SOAPEnvelope envelope,
                            org.apache.axiom.om.OMXMLParserWrapper builder,
                            org.apache.axiom.soap.SOAPFactory factory)
        Constructor SOAPBodyImpl
        Parameters:
        envelope -
        builder -
    • Method Detail

      • addFault

        public abstract org.apache.axiom.soap.SOAPFault addFault​(Exception e)
                                                          throws org.apache.axiom.om.OMException
        Creates a new SOAPFault object and adds it to this SOAPBody object.
        Specified by:
        addFault in interface org.apache.axiom.soap.SOAPBody
        Parameters:
        e -
        Returns:
        the new SOAPFault object
        Throws:
        org.apache.axiom.om.OMException - if there is a SOAP error
        org.apache.axiom.om.OMException
      • hasFault

        public boolean hasFault()
        Indicates whether a SOAPFault object exists in this SOAPBody object.
        Specified by:
        hasFault in interface org.apache.axiom.soap.SOAPBody
        Returns:
        true if a SOAPFault object exists in this SOAPBody object; false otherwise
      • getFault

        public org.apache.axiom.soap.SOAPFault getFault()
        Returns the SOAPFault object in this SOAPBody object.
        Specified by:
        getFault in interface org.apache.axiom.soap.SOAPBody
        Returns:
        the SOAPFault object in this SOAPBody object
      • addFault

        public void addFault​(org.apache.axiom.soap.SOAPFault soapFault)
                      throws org.apache.axiom.om.OMException
        Specified by:
        addFault in interface org.apache.axiom.soap.SOAPBody
        Parameters:
        soapFault -
        Throws:
        org.apache.axiom.om.OMException
        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
      • detach

        public org.apache.axiom.om.OMNode detach()
                                          throws org.apache.axiom.om.OMException
        Description copied from class: OMElementImpl
        Removes this information item and its children, from the model completely.
        Specified by:
        detach in interface org.apache.axiom.om.OMNode
        Overrides:
        detach in class OMElementImpl
        Throws:
        org.apache.axiom.om.OMException
      • buildNext

        public void buildNext()
        Description copied from class: OMElementImpl
        Forces the parser to proceed, if parser has not yet finished with the XML input.
        Specified by:
        buildNext in interface org.apache.axiom.om.OMContainer
        Overrides:
        buildNext in class OMElementImpl
      • getFirstElementNS

        public org.apache.axiom.om.OMNamespace getFirstElementNS()
        Specified by:
        getFirstElementNS in interface org.apache.axiom.soap.SOAPBody
      • getFirstElementLocalName

        public String getFirstElementLocalName()
        Specified by:
        getFirstElementLocalName in interface org.apache.axiom.soap.SOAPBody
      • addChild

        public void addChild​(org.apache.axiom.om.OMNode child)
        Description copied from class: OMElementImpl
        Adds child to the element. One can decide whether to append the child or to add to the front of the children list.
        Specified by:
        addChild in interface org.apache.axiom.om.OMContainer
        Overrides:
        addChild in class OMElementImpl