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
-
Field Summary
Fields inherited from class AbstractEndpointExceptionResolver
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final @Nullable SoapFaultDefinitiongetFaultDefinition(@Nullable Object endpoint, Exception ex) Template method that returns theSoapFaultDefinitionfor the given exception.Methods inherited from class AbstractSoapFaultDefinitionExceptionResolver
customizeFault, resolveExceptionInternal, setDefaultFaultMethods inherited from class AbstractEndpointExceptionResolver
buildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategory
-
Constructor Details
-
SoapFaultAnnotationExceptionResolver
public SoapFaultAnnotationExceptionResolver()
-
-
Method Details
-
getFaultDefinition
protected final @Nullable SoapFaultDefinition getFaultDefinition(@Nullable Object endpoint, Exception ex) 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.
-