Class BodyImpl

  • All Implemented Interfaces:
    javax.xml.soap.Node, javax.xml.soap.SOAPBody, javax.xml.soap.SOAPBodyElement, javax.xml.soap.SOAPElement, Element, Node
    Direct Known Subclasses:
    Body1_1Impl, Body1_2Impl

    public abstract class BodyImpl
    extends ElementImpl
    implements javax.xml.soap.SOAPBody
    The implementation of SOAP-ENV:BODY or the SOAPBody abstraction.
    Author:
    Anil Vijendran (anil@sun.com)
    • Method Detail

      • getFaultName

        protected abstract NameImpl getFaultName​(String name)
      • isFault

        protected abstract boolean isFault​(javax.xml.soap.SOAPElement child)
      • createBodyElement

        protected abstract javax.xml.soap.SOAPBodyElement createBodyElement​(javax.xml.soap.Name name)
      • createBodyElement

        protected abstract javax.xml.soap.SOAPBodyElement createBodyElement​(QName name)
      • createFaultElement

        protected abstract javax.xml.soap.SOAPFault createFaultElement()
      • getDefaultFaultCode

        protected abstract QName getDefaultFaultCode()
      • addFault

        public javax.xml.soap.SOAPFault addFault()
                                          throws javax.xml.soap.SOAPException
        Specified by:
        addFault in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • addFault

        public javax.xml.soap.SOAPFault addFault​(javax.xml.soap.Name faultCode,
                                                 String faultString,
                                                 Locale locale)
                                          throws javax.xml.soap.SOAPException
        Specified by:
        addFault in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • addFault

        public javax.xml.soap.SOAPFault addFault​(QName faultCode,
                                                 String faultString,
                                                 Locale locale)
                                          throws javax.xml.soap.SOAPException
        Specified by:
        addFault in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • addFault

        public javax.xml.soap.SOAPFault addFault​(javax.xml.soap.Name faultCode,
                                                 String faultString)
                                          throws javax.xml.soap.SOAPException
        Specified by:
        addFault in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • addFault

        public javax.xml.soap.SOAPFault addFault​(QName faultCode,
                                                 String faultString)
                                          throws javax.xml.soap.SOAPException
        Specified by:
        addFault in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • findFault

        protected javax.xml.soap.SOAPElement findFault()
      • hasFault

        public boolean hasFault()
        Specified by:
        hasFault in interface javax.xml.soap.SOAPBody
      • getFault

        public javax.xml.soap.SOAPFault getFault()
        Specified by:
        getFault in interface javax.xml.soap.SOAPBody
      • addBodyElement

        public javax.xml.soap.SOAPBodyElement addBodyElement​(javax.xml.soap.Name name)
                                                      throws javax.xml.soap.SOAPException
        Specified by:
        addBodyElement in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • addBodyElement

        public javax.xml.soap.SOAPBodyElement addBodyElement​(QName qname)
                                                      throws javax.xml.soap.SOAPException
        Specified by:
        addBodyElement in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • setParentElement

        public void setParentElement​(javax.xml.soap.SOAPElement element)
                              throws javax.xml.soap.SOAPException
        Specified by:
        setParentElement in interface javax.xml.soap.Node
        Overrides:
        setParentElement in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • addElement

        protected javax.xml.soap.SOAPElement addElement​(javax.xml.soap.Name name)
                                                 throws javax.xml.soap.SOAPException
        Overrides:
        addElement in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • addElement

        protected javax.xml.soap.SOAPElement addElement​(QName name)
                                                 throws javax.xml.soap.SOAPException
        Overrides:
        addElement in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • addDocument

        public javax.xml.soap.SOAPBodyElement addDocument​(Document document)
                                                   throws javax.xml.soap.SOAPException
        Specified by:
        addDocument in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • setElementQName

        public javax.xml.soap.SOAPElement setElementQName​(QName newName)
                                                   throws javax.xml.soap.SOAPException
        Specified by:
        setElementQName in interface javax.xml.soap.SOAPElement
        Overrides:
        setElementQName in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • extractContentAsDocument

        public Document extractContentAsDocument()
                                          throws javax.xml.soap.SOAPException
        Specified by:
        extractContentAsDocument in interface javax.xml.soap.SOAPBody
        Throws:
        javax.xml.soap.SOAPException
      • getFirstChildNoMaterialize

        public Node getFirstChildNoMaterialize()
      • isLazy

        public boolean isLazy()