Class BodyImpl

java.lang.Object
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
com.sun.xml.messaging.saaj.soap.impl.BodyImpl
All Implemented Interfaces:
jakarta.xml.soap.Node, jakarta.xml.soap.SOAPBody, jakarta.xml.soap.SOAPBodyElement, jakarta.xml.soap.SOAPElement, Element, Node
Direct Known Subclasses:
Body1_1Impl, Body1_2Impl

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

  • Method Details

    • getFaultName

      protected abstract NameImpl getFaultName(String name)
    • isFault

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

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

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

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

      protected abstract QName getDefaultFaultCode()
    • addFault

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      protected jakarta.xml.soap.SOAPElement convertToSoapElement(Element element)
      Overrides:
      convertToSoapElement in class ElementImpl
    • setElementQName

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

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

      public boolean hasChildNodes()
      Specified by:
      hasChildNodes in interface Node
      Overrides:
      hasChildNodes in class ElementImpl
    • getChildNodes

      public NodeList getChildNodes()
      Specified by:
      getChildNodes in interface Node
      Overrides:
      getChildNodes in class ElementImpl
    • getFirstChild

      public Node getFirstChild()
      Specified by:
      getFirstChild in interface Node
      Overrides:
      getFirstChild in class ElementImpl
    • getFirstChildNoMaterialize

      public Node getFirstChildNoMaterialize()
    • getLastChild

      public Node getLastChild()
      Specified by:
      getLastChild in interface Node
      Overrides:
      getLastChild in class ElementImpl
    • isLazy

      public boolean isLazy()