MessageType - the type of message supportedpublic class SOAP11FaultContextDecoratingErrorHandler<MessageType> extends Object implements org.opensaml.messaging.error.TypedMessageErrorHandler<MessageType>
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.
| Modifier and Type | Field and Description |
|---|---|
private String |
faultActor
The fault actor to emit.
|
private QName |
faultCode
The fault code to emit.
|
private String |
faultString
The fault string to emit.
|
private Class<? extends Throwable> |
handledThrowable
The handled type of Throwable.
|
private String |
wsAddressingActionURI
The WS-Addressing fault action URI to supply via the context.
|
| Constructor and Description |
|---|
SOAP11FaultContextDecoratingErrorHandler(Class<? extends Throwable> throwable,
QName code,
String message)
Constructor.
|
SOAP11FaultContextDecoratingErrorHandler(Class<? extends Throwable> throwable,
QName code,
String message,
String actor,
String addressingActionURI)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleError(Throwable t,
org.opensaml.messaging.context.MessageContext<MessageType> messageContext) |
boolean |
handlesError(Throwable t) |
@Nonnull private Class<? extends Throwable> handledThrowable
public SOAP11FaultContextDecoratingErrorHandler(@Nonnull Class<? extends Throwable> throwable, @Nonnull QName code, @Nonnull String message)
throwable - the handled type of Throwablecode - the fault codemessage - the fault stringpublic SOAP11FaultContextDecoratingErrorHandler(@Nonnull Class<? extends Throwable> throwable, @Nonnull QName code, @Nonnull String message, @Nullable String actor, @Nullable String addressingActionURI)
throwable - the handled type of Throwablecode - the fault codemessage - the fault stringactor - the fault actoraddressingActionURI - the WS-Addressing action URIpublic boolean handlesError(@Nonnull Throwable t)
handlesError in interface org.opensaml.messaging.error.TypedMessageErrorHandler<MessageType>public boolean handleError(@Nonnull Throwable t, @Nonnull org.opensaml.messaging.context.MessageContext<MessageType> messageContext)
handleError in interface org.opensaml.messaging.error.MessageErrorHandler<MessageType>Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.