Class SoapFaultAnnotationExceptionResolver
java.lang.Object
org.springframework.ws.server.endpoint.AbstractEndpointExceptionResolver
org.springframework.ws.soap.server.endpoint.AbstractSoapFaultDefinitionExceptionResolver
org.springframework.ws.soap.server.endpoint.SoapFaultAnnotationExceptionResolver
- All Implemented Interfaces:
org.springframework.core.Ordered
,EndpointExceptionResolver
public class SoapFaultAnnotationExceptionResolver
extends AbstractSoapFaultDefinitionExceptionResolver
Implementation of the
EndpointExceptionResolver
interface that uses the
SoapFault
annotation to map exceptions to SOAP Faults.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Field Summary
Fields inherited from class org.springframework.ws.server.endpoint.AbstractEndpointExceptionResolver
logger
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final SoapFaultDefinition
getFaultDefinition
(Object endpoint, Exception ex) Template method that returns theSoapFaultDefinition
for the given exception.Methods inherited from class org.springframework.ws.soap.server.endpoint.AbstractSoapFaultDefinitionExceptionResolver
customizeFault, resolveExceptionInternal, setDefaultFault
Methods inherited from class org.springframework.ws.server.endpoint.AbstractEndpointExceptionResolver
buildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategory
-
Constructor Details
-
SoapFaultAnnotationExceptionResolver
public SoapFaultAnnotationExceptionResolver()
-
-
Method Details
-
getFaultDefinition
Description copied from class:AbstractSoapFaultDefinitionExceptionResolver
Template method that returns theSoapFaultDefinition
for the given exception.- Specified by:
getFaultDefinition
in classAbstractSoapFaultDefinitionExceptionResolver
- Parameters:
endpoint
- the executed endpoint, ornull
if none chosen at the time of the exceptionex
- the exception to be handled- Returns:
- the definition mapped to the exception, or
null
if none is found.
-