org.springframework.ws.soap.server.endpoint
Class SimpleSoapExceptionResolver
java.lang.Object
org.springframework.ws.server.endpoint.AbstractEndpointExceptionResolver
org.springframework.ws.soap.server.endpoint.SimpleSoapExceptionResolver
- All Implemented Interfaces:
- Ordered, EndpointExceptionResolver
public class SimpleSoapExceptionResolver
- extends AbstractEndpointExceptionResolver
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSoapExceptionResolver
public SimpleSoapExceptionResolver()
getLocale
public Locale getLocale()
- Returns the locale for the faultstring or reason of the SOAP Fault.
Defaults to
Locale.ENGLISH
.
setLocale
public void setLocale(Locale locale)
- 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 by
AbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception)
.
- Specified by:
resolveExceptionInternal
in class AbstractEndpointExceptionResolver
- Parameters:
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 execution
- Returns:
true
if resolved; false
otherwise- See Also:
AbstractEndpointExceptionResolver.resolveException(MessageContext,Object,Exception)
customizeFault
protected void customizeFault(MessageContext messageContext,
Object endpoint,
Exception ex,
SoapFault fault)
- Empty template method to allow subclasses an opportunity to customize the given
SoapFault
. Called from
resolveExceptionInternal(MessageContext,Object,Exception)
.
- Parameters:
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 © 2005-2013 The Spring Web Services Framework. All Rights Reserved.