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
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final SoapFaultDefinitiongetFaultDefinition(Object endpoint, Exception ex) Template method that returns theSoapFaultDefinitionfor the given exception.Methods inherited from class org.springframework.ws.soap.server.endpoint.AbstractSoapFaultDefinitionExceptionResolver
customizeFault, resolveExceptionInternal, setDefaultFaultMethods 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:AbstractSoapFaultDefinitionExceptionResolverTemplate method that returns theSoapFaultDefinitionfor the given exception.- Specified by:
getFaultDefinitionin classAbstractSoapFaultDefinitionExceptionResolver- Parameters:
endpoint- the executed endpoint, ornullif none chosen at the time of the exceptionex- the exception to be handled- Returns:
- the definition mapped to the exception, or
nullif none is found.
-