summaryrefslogtreecommitdiff
path: root/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-04-01 23:17:27 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-04-01 23:17:27 +0200
commita19b85723223dbefff7f34a59421c2d2edf3261f (patch)
tree1de017b7eaa12038a8c23663520fab1780dfc1b2 /eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java
parenta6539d2b881f1567d77fbc87e3676ffb9ffb9dcb (diff)
downloadEAAF-Components-a19b85723223dbefff7f34a59421c2d2edf3261f.tar.gz
EAAF-Components-a19b85723223dbefff7f34a59421c2d2edf3261f.tar.bz2
EAAF-Components-a19b85723223dbefff7f34a59421c2d2edf3261f.zip
update process-engine support HTTP POST and GET error forwarting.
This is needed for processes in IFrames
Diffstat (limited to 'eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java')
-rw-r--r--eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java
index 300a390d..4b07bea9 100644
--- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java
+++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/DummyProtocolAuthService.java
@@ -8,6 +8,9 @@ import javax.servlet.http.HttpServletResponse;
import at.gv.egiz.eaaf.core.api.IRequest;
import at.gv.egiz.eaaf.core.api.idp.auth.services.IProtocolAuthenticationService;
import at.gv.egiz.eaaf.core.exceptions.EaafException;
+import at.gv.egiz.eaaf.core.exceptions.GuiBuildException;
+import at.gv.egiz.eaaf.core.impl.data.Pair;
+import lombok.Getter;
public class DummyProtocolAuthService implements IProtocolAuthenticationService {
@@ -16,6 +19,9 @@ public class DummyProtocolAuthService implements IProtocolAuthenticationService
private HttpServletResponse httpResp;
private Throwable exception;
private boolean writeToStatisticLog;
+
+ @Getter
+ private String errorKey;
@Override
public void performAuthentication(final HttpServletRequest req, final HttpServletResponse resp,
@@ -57,6 +63,18 @@ public class DummyProtocolAuthService implements IProtocolAuthenticationService
}
+ @Override
+ public void forwardToErrorHandler(Pair<IRequest, Throwable> errorToHandle, String errorKey,
+ HttpServletRequest req, HttpServletResponse resp) throws GuiBuildException {
+ this.httpReq = req;
+ this.httpResp = resp;
+ this.pendingReq = errorToHandle.getFirst();
+ this.exception = errorToHandle.getSecond();
+ this.errorKey = errorKey;
+
+
+ }
+
public IRequest getPendingReq() {
return pendingReq;
}