Class SimpleSoapExceptionResolver
java.lang.Object
org.springframework.ws.server.endpoint.AbstractEndpointExceptionResolver
org.springframework.ws.soap.server.endpoint.SimpleSoapExceptionResolver
- All Implemented Interfaces:
org.springframework.core.Ordered,EndpointExceptionResolver
Simple, SOAP-specific
EndpointExceptionResolver implementation that stores the exception's message as the
fault string.
The fault code is always set to a Server (in SOAP 1.1) or Receiver (SOAP 1.2).
- Since:
- 1.0.0
-
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 voidcustomizeFault(MessageContext messageContext, Object endpoint, Exception ex, SoapFault fault) Empty template method to allow subclasses an opportunity to customize the givenSoapFault.Returns the locale for the faultstring or reason of the SOAP Fault.protected final booleanresolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex) Template method for resolving exceptions that is called byAbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception).voidSets the locale for the faultstring or reason of the SOAP Fault.Methods inherited from class org.springframework.ws.server.endpoint.AbstractEndpointExceptionResolver
buildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategory
-
Constructor Details
-
SimpleSoapExceptionResolver
public SimpleSoapExceptionResolver()
-
-
Method Details
-
getLocale
Returns the locale for the faultstring or reason of the SOAP Fault.Defaults to
Locale.ENGLISH. -
setLocale
Sets the locale for the faultstring or reason of the SOAP Fault.Defaults to
Locale.ENGLISH. -
resolveExceptionInternal
protected final boolean resolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex) Description copied from class:AbstractEndpointExceptionResolverTemplate method for resolving exceptions that is called byAbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception).- Specified by:
resolveExceptionInternalin classAbstractEndpointExceptionResolver- Parameters:
messageContext- current message contextendpoint- the executed endpoint, ornullif none chosen at the time of the exceptionex- the exception that got thrown during endpoint execution- Returns:
trueif resolved;falseotherwise- See Also:
-
customizeFault
protected void customizeFault(MessageContext messageContext, Object endpoint, Exception ex, SoapFault fault) Empty template method to allow subclasses an opportunity to customize the givenSoapFault. Called fromresolveExceptionInternal(MessageContext,Object,Exception).- Parameters:
messageContext- current message contextendpoint- the executed endpoint, ornullif none chosen at the time of the exceptionex- the exception that got thrown during endpoint executionfault- the SOAP fault to be customized.
-