org.springframework.ws.endpoint
Class AbstractEndpointExceptionResolver
java.lang.Object
org.springframework.ws.endpoint.AbstractEndpointExceptionResolver
- All Implemented Interfaces:
- EndpointExceptionResolver
- Direct Known Subclasses:
- SimpleSoapExceptionResolver, SoapFaultMappingExceptionResolver
public abstract class AbstractEndpointExceptionResolver
- extends Object
- implements EndpointExceptionResolver
Abstract base class for ExceptionResolvers. Provides a set of mapped endpoints that the resolver should
map.
- Author:
- Arjen Poutsma
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
AbstractEndpointExceptionResolver
public AbstractEndpointExceptionResolver()
setMappedEndpoints
public void setMappedEndpoints(Set mappedEndpoints)
- Specify the set of endpoints that this exception resolver should map. The exception mappings and the default
fault will only apply to the specified endpoints.
If no endpoints set, both the exception mappings and the default fault will apply to all handlers. This means
that a specified default fault will be used as fallback for all exceptions; any further
EndpointExceptionResolvers in the chain will be ignored in this case.
resolveException
public final boolean resolveException(MessageContext messageContext,
Object endpoint,
Exception ex)
- Default implementation. Checks whether the given endpoint is in the set of mapped endpoints. Calls
resolveExceptionInternal.
- Specified by:
resolveException in interface EndpointExceptionResolver
- 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:
resolveExceptionInternal(org.springframework.ws.context.MessageContext, Object, Exception)
resolveExceptionInternal
protected abstract boolean resolveExceptionInternal(MessageContext messageContext,
Object endpoint,
Exception ex)
- Template method for resolving exceptions. Gets called after
resolveException.
- 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:
resolveException(org.springframework.ws.context.MessageContext, Object, Exception)
Copyright (c) 2005-2006 The Spring Framework Project.