public abstract class AbstractSoapFaultDefinitionExceptionResolver extends AbstractEndpointExceptionResolver
EndpointExceptionResolver
implementations that depend on SoapFaultDefinition
. Provides a default endpoint property, and a template method that provides the definition for a
given exception.setDefaultFault(SoapFaultDefinition)
,
getFaultDefinition(Object,Exception)
logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
AbstractSoapFaultDefinitionExceptionResolver() |
Modifier and Type | Method and Description |
---|---|
protected void |
customizeFault(Object endpoint,
Exception ex,
SoapFault fault)
Customize the
SoapFault created by this resolver. |
protected abstract SoapFaultDefinition |
getFaultDefinition(Object endpoint,
Exception ex)
Template method that returns the
SoapFaultDefinition for the given exception. |
protected boolean |
resolveExceptionInternal(MessageContext messageContext,
Object endpoint,
Exception ex)
Template method for resolving exceptions that is called by
AbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception) . |
void |
setDefaultFault(SoapFaultDefinition defaultFault)
Set the default fault.
|
buildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategory
public AbstractSoapFaultDefinitionExceptionResolver()
public void setDefaultFault(SoapFaultDefinition defaultFault)
protected abstract SoapFaultDefinition getFaultDefinition(Object endpoint, Exception ex)
SoapFaultDefinition
for the given exception.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 final boolean resolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex)
AbstractEndpointExceptionResolver
AbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception)
.resolveExceptionInternal
in class AbstractEndpointExceptionResolver
messageContext
- current message contextendpoint
- the executed endpoint, or null
if none chosen at the time of the exceptionex
- the exception that got thrown during endpoint executiontrue
if resolved; false
otherwiseAbstractEndpointExceptionResolver.resolveException(MessageContext,Object,Exception)
protected void customizeFault(Object endpoint, Exception ex, SoapFault fault)
SoapFault
created by this resolver. Called for each created fault
The default implementation is empty. Can be overridden in subclasses to customize the properties of the fault, such as adding details, etc.
endpoint
- the executed endpoint, or null
if none chosen at the time of the exceptionex
- the exception to be handledfault
- the created fault