Class SOAP11FaultContextDecoratingErrorHandler
java.lang.Object
org.opensaml.soap.soap11.messaging.impl.SOAP11FaultContextDecoratingErrorHandler
- All Implemented Interfaces:
MessageErrorHandler,TypedMessageErrorHandler
public class SOAP11FaultContextDecoratingErrorHandler
extends Object
implements TypedMessageErrorHandler
An implementation of
TypedMessageErrorHandler which simply decorates the supplied
MessageContext with a Fault and optionally a WS-Addressing Action URI.
The actual SOAP 1.1. fault is assumed to be emitted later, perhaps directly by a specialized
fault-aware MessageEncoder.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSOAP11FaultContextDecoratingErrorHandler(Class<? extends Throwable> throwable, QName code, String message) Constructor.SOAP11FaultContextDecoratingErrorHandler(Class<? extends Throwable> throwable, QName code, String message, String actor, String addressingActionURI) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleError(Throwable t, MessageContext messageContext) Handle a particular thrown error.booleanIndicates whether the message error handle is capable of handling the specified error.
-
Field Details
-
handledThrowable
The handled type of Throwable. -
faultCode
The fault code to emit. -
faultString
The fault string to emit. -
faultActor
The fault actor to emit. -
wsAddressingActionURI
The WS-Addressing fault action URI to supply via the context.
-
-
Constructor Details
-
SOAP11FaultContextDecoratingErrorHandler
public SOAP11FaultContextDecoratingErrorHandler(@Nonnull Class<? extends Throwable> throwable, @Nonnull QName code, @Nonnull String message) Constructor.- Parameters:
throwable- the handled type ofThrowablecode- the fault codemessage- the fault string
-
SOAP11FaultContextDecoratingErrorHandler
public SOAP11FaultContextDecoratingErrorHandler(@Nonnull Class<? extends Throwable> throwable, @Nonnull QName code, @Nonnull String message, @Nullable String actor, @Nullable String addressingActionURI) Constructor.- Parameters:
throwable- the handled type ofThrowablecode- the fault codemessage- the fault stringactor- the fault actoraddressingActionURI- the WS-Addressing action URI
-
-
Method Details
-
handlesError
Indicates whether the message error handle is capable of handling the specified error.- Specified by:
handlesErrorin interfaceTypedMessageErrorHandler- Parameters:
t- the type of error about which to query- Returns:
- true iff the handle can handle the specified error type
-
handleError
Handle a particular thrown error.- Specified by:
handleErrorin interfaceMessageErrorHandler- Parameters:
t- the error that was thrownmessageContext- the message context being processed, if available- Returns:
- true if error was successfully handled, false otherwise
-