diff options
author | Thomas <> | 2023-04-26 19:04:57 +0200 |
---|---|---|
committer | Thomas <> | 2023-04-26 19:04:57 +0200 |
commit | 88f52463fd0d3d8bf467b75798b525ce86886acc (patch) | |
tree | 5c0c2eba19651444f757a76d11ecb51953cd4599 /eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java | |
parent | 23a754ddce6a407315b8ebb2494b4f0f21bdccbf (diff) | |
download | EAAF-Components-88f52463fd0d3d8bf467b75798b525ce86886acc.tar.gz EAAF-Components-88f52463fd0d3d8bf467b75798b525ce86886acc.tar.bz2 EAAF-Components-88f52463fd0d3d8bf467b75798b525ce86886acc.zip |
feat(core): add extension-point to central errorHandler service to set application specific information into error-GUI model
Diffstat (limited to 'eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java index b6bc1056..45b1cfe8 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java @@ -1,8 +1,12 @@ package at.gv.egiz.eaaf.core.impl.idp.auth.services; +import java.util.Map; + import javax.annotation.Nonnull; +import javax.annotation.Nullable; import javax.servlet.http.HttpServletRequest; +import at.gv.egiz.eaaf.core.api.IRequest; import at.gv.egiz.eaaf.core.api.gui.ModifyableGuiBuilderConfiguration; import at.gv.egiz.eaaf.core.exceptions.EaafException; @@ -94,14 +98,19 @@ public interface IErrorService { /** * Creates error handling data. * - * @param throwable Error that should be handled - * @param supportRedirctToSp <code>true</code> if the current process-state supports redirect - * to Service-Provider, otherwise <code>false</code> - * @return Information how the error should be handled + * <p> + * Redirect to Service-Provider is supported in case of an available + * pendingRequest. + * </p> + * + * @param throwable Error that should be handled + * @param protocolRequest Current pendingRequest if available + * @return Information how the error should be handled * @throws EaafException In case of an internal error */ @Nonnull - IHandleData createHandleData(@Nonnull Throwable throwable, boolean supportRedirctToSp) throws EaafException; + IHandleData createHandleData(@Nonnull Throwable throwable, @Nullable IRequest protocolRequest) + throws EaafException; /** * Displays the error using suitable errordata. @@ -160,5 +169,13 @@ public interface IErrorService { * @return log message */ String getPreFormatedErrorMessage(); + + /** + * Get additional elements for error GUI model. + * + * @return Map of GUI model elements. + */ + Map<String, String> getAdditionalGuiModelElements(); + } } |