public class SoapFaultMappingExceptionResolver extends AbstractSoapFaultDefinitionExceptionResolver
exceptionMappings
property, the format of which is documented in SoapFaultDefinitionEditor
.logger
Constructor and Description |
---|
SoapFaultMappingExceptionResolver() |
Modifier and Type | Method and Description |
---|---|
protected int |
getDepth(String exceptionMapping,
Exception ex)
Return the depth to the superclass matching.
|
protected SoapFaultDefinition |
getFaultDefinition(Object endpoint,
Exception ex)
Template method that returns the
SoapFaultDefinition for the given exception. |
void |
setExceptionMappings(Properties mappings)
Set the mappings between exception class names and SOAP Faults.
|
customizeFault, resolveExceptionInternal, setDefaultFault
buildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategory
public void setExceptionMappings(Properties mappings)
The values of the given properties object should use the format described in
SoapFaultDefinitionEditor
.
Follows the same matching algorithm as SimpleMappingExceptionResolver
.
mappings
- exception patterns (can also be fully qualified class names) as keys, fault definition texts as
valuesSoapFaultDefinitionEditor
protected SoapFaultDefinition getFaultDefinition(Object endpoint, Exception ex)
AbstractSoapFaultDefinitionExceptionResolver
SoapFaultDefinition
for the given exception.getFaultDefinition
in class AbstractSoapFaultDefinitionExceptionResolver
endpoint
- the executed endpoint, or null
if none chosen at the time of the exceptionex
- the exception to be handlednull
if none is found.protected int getDepth(String exceptionMapping, Exception ex)
0
means ex matches exactly. Returns -1
if
there's no match. Otherwise, returns depth. Lowest depth wins.
Follows the same algorithm as RollbackRuleAttribute, and SimpleMappingExceptionResolver