Package org.kiwiproject.beta.xml.ws.soap
Class SOAPFaults
- java.lang.Object
-
- org.kiwiproject.beta.xml.ws.soap.SOAPFaults
-
@Beta public final class SOAPFaults extends Object
Utilities related toSOAPFaultandSOAPFaultException.
-
-
Field Summary
Fields Modifier and Type Field Description static StringUNSUPPORTEDIndicates an unsupported SOAP feature.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogSoapFault(String context, javax.xml.soap.SOAPFault fault, org.slf4j.Logger logger)Log detailed information about theSOAPFault.static voidlogSoapFault(String context, javax.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.static Map<String,Object>soapFaultAsMap(javax.xml.soap.SOAPFault fault)Convert theSOAPFaultinto a map containing the fault properties.
-
-
-
Field Detail
-
UNSUPPORTED
public static final String UNSUPPORTED
Indicates an unsupported SOAP feature.- See Also:
- Constant Field Values
-
-
Method Detail
-
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, javax.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, javax.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
-
-