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 ofTypedMessageErrorHandlerwhich simply decorates the suppliedMessageContextwith aFaultand 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 Modifier and Type Field Description private StringfaultActorThe fault actor to emit.private QNamefaultCodeThe fault code to emit.private StringfaultStringThe fault string to emit.private Class<? extends Throwable>handledThrowableThe handled type of Throwable.private StringwsAddressingActionURIThe WS-Addressing fault action URI to supply via the context.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleError(Throwable t, MessageContext messageContext)booleanhandlesError(Throwable t)
-
-
-
Field Detail
-
handledThrowable
@Nonnull private Class<? extends Throwable> handledThrowable
The handled type of Throwable.
-
faultCode
@Nonnull private QName faultCode
The fault code to emit.
-
faultString
@Nonnull private String faultString
The fault string to emit.
-
faultActor
@Nullable private String faultActor
The fault actor to emit.
-
wsAddressingActionURI
@Nullable private String wsAddressingActionURI
The WS-Addressing fault action URI to supply via the context.
-
-
Constructor Detail
-
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 Detail
-
handlesError
public boolean handlesError(@Nonnull Throwable t)- Specified by:
handlesErrorin interfaceTypedMessageErrorHandler
-
handleError
public boolean handleError(@Nonnull Throwable t, @Nonnull MessageContext messageContext)- Specified by:
handleErrorin interfaceMessageErrorHandler
-
-