Class FaultImpl

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.soap.soap11.impl.FaultImpl
All Implemented Interfaces:
XMLObject, SOAPObject, Fault

public class FaultImpl extends AbstractXMLObject implements Fault
Concrete implemenation of Fault.
  • Field Details

    • faultCode

      private FaultCode faultCode
      Fault code.
    • message

      private FaultString message
      Fault message.
    • actor

      private FaultActor actor
      Actor that faulted.
    • detail

      private Detail detail
      Details of the fault.
  • Constructor Details

    • FaultImpl

      protected FaultImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - namespace of the element
      elementLocalName - name of the element
      namespacePrefix - namespace prefix of the element
  • Method Details

    • getCode

      public FaultCode getCode()
      Gets the fault code for this fault.
      Specified by:
      getCode in interface Fault
      Returns:
      the fault code for this fault
    • setCode

      public void setCode(FaultCode newFaultCode)
      Sets the fault code for this fault.
      Specified by:
      setCode in interface Fault
      Parameters:
      newFaultCode - the fault code for this fault
    • getMessage

      public FaultString getMessage()
      Gets the fault string for this fault.
      Specified by:
      getMessage in interface Fault
      Returns:
      the fault string for this fault
    • setMessage

      public void setMessage(FaultString newMessage)
      Sets the fault string for this fault.
      Specified by:
      setMessage in interface Fault
      Parameters:
      newMessage - the fault string for this fault
    • getActor

      public FaultActor getActor()
      Gets the URI of the fault actor for this fault.
      Specified by:
      getActor in interface Fault
      Returns:
      the URI of the fault actor for this fault
    • setActor

      public void setActor(FaultActor newActor)
      Sets the URI of the fault actor for this fault.
      Specified by:
      setActor in interface Fault
      Parameters:
      newActor - the URI of the fault actor for this fault
    • getDetail

      public Detail getDetail()
      Gets details of this fault.
      Specified by:
      getDetail in interface Fault
      Returns:
      details of this fault
    • setDetail

      public void setDetail(Detail newDetail)
      Sets details of this fault.
      Specified by:
      setDetail in interface Fault
      Parameters:
      newDetail - details of this fault
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements