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
  • Field Details

  • Constructor Details

    • 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 Details

    • 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)
    • internalSerialize

      public void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
      Description copied from class: OMSerializableImpl
      Serializes the node.
      Specified by:
      internalSerialize in interface org.apache.axiom.om.impl.OMNodeEx
      Overrides:
      internalSerialize in class OMElementImpl
      Parameters:
      writer -
      Throws:
      XMLStreamException
    • serializeFaultNode

      protected abstract void serializeFaultNode(XMLStreamWriter writer) throws XMLStreamException
      Throws:
      XMLStreamException