Package org.kiwiproject.beta.xml.ws.soap
Class SOAPFaults
java.lang.Object
org.kiwiproject.beta.xml.ws.soap.SOAPFaults
Utilities related to
SOAPFault and SOAPFaultException.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidlogSoapFault(String context, jakarta.xml.soap.SOAPFault fault, org.slf4j.Logger logger) Log detailed information about theSOAPFault.static voidlogSoapFault(String context, jakarta.xml.ws.soap.SOAPFaultException exception, org.slf4j.Logger logger) Log detailed information about theSOAPFaultcontained inside theSOAPFaultException.static booleanlogSoapFaultIfPresent(String context, @Nullable Throwable throwable, org.slf4j.Logger logger) If the given throwable contains aSOAPFaultException, log detailed information about it.soapFaultAsMap(jakarta.xml.soap.SOAPFault fault) Convert theSOAPFaultinto a map containing the fault properties.
-
Field Details
-
UNSUPPORTED
Indicates an unsupported SOAP feature.- See Also:
-
-
Method Details
-
logSoapFaultIfPresent
public static boolean logSoapFaultIfPresent(String context, @Nullable Throwable throwable, org.slf4j.Logger logger) If the given throwable contains aSOAPFaultException, log detailed information about it.- Parameters:
context- a description that will be included in the log message, for easier traceabilitythrowable- theThrowableto checklogger- the SLF4JLoggerto 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 theSOAPFaultcontained inside theSOAPFaultException.- Parameters:
context- a description that will be included in the log message, for easier traceabilityexception- theSOAPFaultExceptioncontaining theSOAPFaultto log information aboutlogger- the SLF4JLoggerto use for logging
-
logSoapFault
public static void logSoapFault(String context, jakarta.xml.soap.SOAPFault fault, org.slf4j.Logger logger) Log detailed information about theSOAPFault.- Parameters:
context- a description that will be included in the log message, for easier traceabilityfault- theSOAPFaultto log information aboutlogger- the SLF4JLoggerto use for logging
-
soapFaultAsMap
Convert theSOAPFaultinto a map containing the fault properties.- Parameters:
fault- theSOAPFaultto convert into a map- Returns:
- map containing fault properties
-