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
- 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 void
customizeFault
(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 boolean
resolveExceptionInternal
(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)
.void
Sets 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:AbstractEndpointExceptionResolver
Template method for resolving exceptions that is called byAbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception)
.- Specified by:
resolveExceptionInternal
in classAbstractEndpointExceptionResolver
- Parameters:
messageContext
- current message contextendpoint
- the executed endpoint, ornull
if none chosen at the time of the exceptionex
- the exception that got thrown during endpoint execution- Returns:
true
if resolved;false
otherwise- 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, ornull
if none chosen at the time of the exceptionex
- the exception that got thrown during endpoint executionfault
- the SOAP fault to be customized.
-