Class SOAPFaultImpl

  • 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.SOAPFault
    Direct Known Subclasses:
    SOAP11FaultImpl, SOAP12FaultImpl

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

      • SOAPFaultImpl

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

        public SOAPFaultImpl​(org.apache.axiom.soap.SOAPBody parent,
                             Exception e,
                             org.apache.axiom.soap.SOAPFactory factory)
                      throws org.apache.axiom.soap.SOAPProcessingException
        Constructor SOAPFaultImpl
        Parameters:
        parent -
        e -
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • SOAPFaultImpl

        public SOAPFaultImpl​(org.apache.axiom.soap.SOAPBody parent,
                             org.apache.axiom.soap.SOAPFactory factory)
                      throws org.apache.axiom.soap.SOAPProcessingException
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • SOAPFaultImpl

        public SOAPFaultImpl​(org.apache.axiom.soap.SOAPBody parent,
                             org.apache.axiom.om.OMXMLParserWrapper builder,
                             org.apache.axiom.soap.SOAPFactory factory)
        Constructor SOAPFaultImpl
        Parameters:
        parent -
        builder -
    • Method Detail

      • setException

        public void setException​(Exception e)
        Specified by:
        setException in interface org.apache.axiom.soap.SOAPFault
      • getNewSOAPFaultDetail

        protected abstract org.apache.axiom.soap.SOAPFaultDetail getNewSOAPFaultDetail​(org.apache.axiom.soap.SOAPFault fault)
                                                                                throws org.apache.axiom.soap.SOAPProcessingException
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • setCode

        public void setCode​(org.apache.axiom.soap.SOAPFaultCode soapFaultCode)
                     throws org.apache.axiom.soap.SOAPProcessingException
        Specified by:
        setCode in interface org.apache.axiom.soap.SOAPFault
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • setReason

        public void setReason​(org.apache.axiom.soap.SOAPFaultReason reason)
                       throws org.apache.axiom.soap.SOAPProcessingException
        Specified by:
        setReason in interface org.apache.axiom.soap.SOAPFault
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • setNode

        public void setNode​(org.apache.axiom.soap.SOAPFaultNode node)
                     throws org.apache.axiom.soap.SOAPProcessingException
        Specified by:
        setNode in interface org.apache.axiom.soap.SOAPFault
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • setRole

        public void setRole​(org.apache.axiom.soap.SOAPFaultRole role)
                     throws org.apache.axiom.soap.SOAPProcessingException
        Specified by:
        setRole in interface org.apache.axiom.soap.SOAPFault
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • setDetail

        public void setDetail​(org.apache.axiom.soap.SOAPFaultDetail detail)
                       throws org.apache.axiom.soap.SOAPProcessingException
        Specified by:
        setDetail in interface org.apache.axiom.soap.SOAPFault
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • getException

        public Exception getException()
                               throws org.apache.axiom.om.OMException
        If exception detailElement is not there we will return null
        Specified by:
        getException in interface org.apache.axiom.soap.SOAPFault
        Throws:
        org.apache.axiom.om.OMException
      • putExceptionToSOAPFault

        protected void putExceptionToSOAPFault​(Exception e)
                                        throws org.apache.axiom.soap.SOAPProcessingException
        Throws:
        org.apache.axiom.soap.SOAPProcessingException
      • setNewElement

        protected void setNewElement​(org.apache.axiom.om.OMElement myElement,
                                     org.apache.axiom.om.OMElement newElement)