public class SimpleSoapExceptionResolver extends AbstractEndpointExceptionResolver
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).
logger| Constructor and Description |
|---|
SimpleSoapExceptionResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
customizeFault(MessageContext messageContext,
Object endpoint,
Exception ex,
SoapFault fault)
Empty template method to allow subclasses an opportunity to customize the given
SoapFault. |
Locale |
getLocale()
Returns the locale for the faultstring or reason of the SOAP Fault.
|
protected boolean |
resolveExceptionInternal(MessageContext messageContext,
Object endpoint,
Exception ex)
Template method for resolving exceptions that is called by
AbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception). |
void |
setLocale(Locale locale)
Sets the locale for the faultstring or reason of the SOAP Fault.
|
buildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategorypublic Locale getLocale()
Defaults to Locale.ENGLISH.
public void setLocale(Locale locale)
Defaults to Locale.ENGLISH.
protected final boolean resolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex)
AbstractEndpointExceptionResolverAbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception).resolveExceptionInternal in class AbstractEndpointExceptionResolvermessageContext - current message contextendpoint - the executed endpoint, or null if none chosen at the time of the exceptionex - the exception that got thrown during endpoint executiontrue if resolved; false otherwiseAbstractEndpointExceptionResolver.resolveException(MessageContext,Object,Exception)protected void customizeFault(MessageContext messageContext, Object endpoint, Exception ex, SoapFault fault)
SoapFault. Called from
resolveExceptionInternal(MessageContext,Object,Exception).messageContext - current message contextendpoint - the executed endpoint, or null if none chosen at the time of the exceptionex - the exception that got thrown during endpoint executionfault - the SOAP fault to be customized.Copyright © 2023 VMware, Inc.. All rights reserved.