Class SoapFault

All Implemented Interfaces:
Serializable, Message

public class SoapFault extends SoapMessage
Since:
2.0
See Also:
  • Constructor Details

    • SoapFault

      public SoapFault()
      Default constructor.
    • SoapFault

      public SoapFault(Message message)
      Default constructor using parent message.
      Parameters:
      message -
    • SoapFault

      public SoapFault(Object payload)
      Default constructor using payload.
      Parameters:
      payload -
  • Method Details

    • getFaultCodeQName

      public QName getFaultCodeQName()
      Returns fault code as qualified name.
      Returns:
    • faultCode

      public SoapFault faultCode(String faultCode)
      Sets the fault code.
      Parameters:
      faultCode -
    • faultString

      public SoapFault faultString(String faultString)
      Sets the fault string or reason.
      Parameters:
      faultString -
    • faultActor

      public SoapFault faultActor(String faultActor)
      Sets the faultActor.
      Parameters:
      faultActor - the faultActor to set
    • faultDetails

      public SoapFault faultDetails(List<String> faultDetails)
      Sets the faultDetails.
      Parameters:
      faultDetails - the faultDetails to set
    • addFaultDetail

      public SoapFault addFaultDetail(String faultDetail)
      Adds a new fault detail in builder pattern style.
      Parameters:
      faultDetail -
      Returns:
    • locale

      public SoapFault locale(Locale locale)
      Sets the locale used in SOAP fault.
      Parameters:
      locale -
    • locale

      public SoapFault locale(String locale)
      Sets the locale used in SOAP fault.
      Parameters:
      locale -
    • getFaultActor

      public String getFaultActor()
      Gets the faultActor.
      Returns:
      the faultActor the faultActor to get.
    • getFaultCode

      public String getFaultCode()
      Gets the faultCode.
      Returns:
      the faultCode
    • getFaultString

      public String getFaultString()
      Gets the faultString.
      Returns:
      the faultString
    • getFaultDetails

      public List<String> getFaultDetails()
      Gets the faultDetails.
      Returns:
      the faultDetails the faultDetails to get.
    • getLocale

      public Locale getLocale()
      Gets the locale used in SOAP fault.
      Returns:
    • from

      public static SoapFault from(org.springframework.ws.soap.SoapFault fault)
      Builder method from Spring WS SOAP fault object.
      Parameters:
      fault -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class SoapMessage