Class SOAPFaults


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

      • 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,
                                        javax.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,
                                        javax.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​(javax.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