public class AddSOAPFault extends AbstractProfileAction
Fault object in the outbound message context.
Options allow for the creation of a FaultString either explicitly,
or via lookup strategy.
| Modifier and Type | Class and Description |
|---|---|
static class |
AddSOAPFault.FaultCodeMappingFunction
A default method to map event IDs to faultcode QName based on
EventContext. |
| Constructor and Description |
|---|
AddSOAPFault()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
void |
setDetailedErrorsCondition(com.google.common.base.Predicate<ProfileRequestContext> condition)
Set the predicate used to determine the detailed errors condition.
|
void |
setFaultCode(QName code)
Set the default faultcode to insert.
|
void |
setFaultCodeLookupStrategy(com.google.common.base.Function<ProfileRequestContext,QName> strategy)
Set the optional strategy used to obtain a faultcode to include.
|
void |
setFaultString(String message)
Set a default faultstring to use in the event that error detail is off,
or no specific message is obtained.
|
void |
setFaultStringLookupStrategy(com.google.common.base.Function<ProfileRequestContext,String> strategy)
Set the optional strategy used to obtain a faultstring to include.
|
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedpublic void setDetailedErrorsCondition(@Nonnull com.google.common.base.Predicate<ProfileRequestContext> condition)
condition - predicate for detailed errors conditionpublic void setFaultCodeLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,QName> strategy)
strategy - strategy used to obtain faultcodepublic void setFaultStringLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,String> strategy)
strategy - strategy used to obtain a fault stringpublic void setFaultCode(@Nonnull QName code)
code - faultcodepublic void setFaultString(@Nullable String message)
message - default faultstringprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request contextprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request contextCopyright © 2021. All rights reserved.