Class SOAPFaults

java.lang.Object
org.kiwiproject.beta.xml.ws.soap.SOAPFaults

@Beta public final class SOAPFaults extends Object
Utilities related to SOAPFault and SOAPFaultException.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Indicates an unsupported SOAP feature.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    logSoapFault(String context, jakarta.xml.soap.SOAPFault fault, org.slf4j.Logger logger)
    Log detailed information about the SOAPFault.
    static void
    logSoapFault(String context, jakarta.xml.ws.soap.SOAPFaultException exception, org.slf4j.Logger logger)
    Log detailed information about the SOAPFault contained inside the SOAPFaultException.
    static boolean
    logSoapFaultIfPresent(String context, @Nullable Throwable throwable, org.slf4j.Logger logger)
    If the given throwable contains a SOAPFaultException, log detailed information about it.
    static Map<String,Object>
    soapFaultAsMap(jakarta.xml.soap.SOAPFault fault)
    Convert the SOAPFault into a map containing the fault properties.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • logSoapFaultIfPresent

      public static boolean logSoapFaultIfPresent(String context, @Nullable Throwable throwable, org.slf4j.Logger logger)
      If the given throwable contains a SOAPFaultException, log detailed information about it.
      Parameters:
      context - a description that will be included in the log message, for easier traceability
      throwable - the Throwable to check
      logger - the SLF4J Logger to use for logging
      Returns:
      true if the throwable contained a SOAPFaultException, false otherwise
    • logSoapFault

      public static void logSoapFault(String context, jakarta.xml.ws.soap.SOAPFaultException exception, org.slf4j.Logger logger)
      Log detailed information about the SOAPFault contained inside the SOAPFaultException.
      Parameters:
      context - a description that will be included in the log message, for easier traceability
      exception - the SOAPFaultException containing the SOAPFault to log information about
      logger - the SLF4J Logger to use for logging
    • logSoapFault

      public static void logSoapFault(String context, jakarta.xml.soap.SOAPFault fault, org.slf4j.Logger logger)
      Log detailed information about the SOAPFault.
      Parameters:
      context - a description that will be included in the log message, for easier traceability
      fault - the SOAPFault to log information about
      logger - the SLF4J Logger to use for logging
    • soapFaultAsMap

      public static Map<String,Object> soapFaultAsMap(jakarta.xml.soap.SOAPFault fault)
      Convert the SOAPFault into a map containing the fault properties.
      Parameters:
      fault - the SOAPFault to convert into a map
      Returns:
      map containing fault properties