Interface SOAPFaultReason

All Superinterfaces:
OMContainer, OMElement, OMInformationItem, OMNamedInformationItem, OMNode, OMSerializable

public interface SOAPFaultReason extends OMElement
  • Method Details

    • addSOAPText

      void addSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException
      Throws:
      SOAPProcessingException
    • getFirstSOAPText

      SOAPFaultText getFirstSOAPText()
    • getAllSoapTexts

      List<SOAPFaultText> getAllSoapTexts()
    • getSOAPFaultText

      SOAPFaultText getSOAPFaultText(String language)
    • getFaultReasonText

      String getFaultReasonText(Locale locale)
      Extract the fault reason text for the locale that best matches the given locale. This method works for all SOAP versions. Since SOAP 1.1 doesn't support localized fault reasons, the locale is effectively ignored in that version. For SOAP 1.2 the method extracts the text from the SOAPFaultText that best matches the given locale, falling back to English.
      Parameters:
      locale - the requested locale
      Returns:
      the reason text