cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject [03/12] cxf-fediz git commit: Improve SigninHandler
Date Fri, 20 Mar 2015 12:11:28 GMT
Improve SigninHandler


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/e615cf8f
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/e615cf8f
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/e615cf8f

Branch: refs/heads/master
Commit: e615cf8fd3547175b6dab3147e3214f1ec56140d
Parents: ce7b4f1
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Thu Mar 5 08:59:20 2015 +0100
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Thu Mar 19 17:26:20 2015 +0100

----------------------------------------------------------------------
 .../apache/cxf/fediz/core/handler/SigninHandler.java    | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/e615cf8f/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
index 54a6ab7..a8d214d 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/handler/SigninHandler.java
@@ -34,7 +34,11 @@ import org.apache.cxf.fediz.core.processor.FedizResponse;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public abstract class SigninHandler implements RequestHandler {
+/**
+ * It is recommended to extend this class and implement the resumeRequest method to continue
invoking the originally
+ * requested website.
+ */
+public class SigninHandler implements RequestHandler {
 
     private static final Logger LOG = LoggerFactory.getLogger(SigninHandler.class);
     protected final FedizContext fedizConfig;
@@ -74,8 +78,10 @@ public abstract class SigninHandler implements RequestHandler {
         return false;
     }
 
-    public abstract void resumeRequest(HttpServletRequest request, HttpServletResponse response,
-        FedizResponse federationResponse);
+    public void resumeRequest(HttpServletRequest request, HttpServletResponse response,
+        FedizResponse federationResponse) {
+
+    }
 
     public FedizResponse processSigninRequest(HttpServletRequest req, HttpServletResponse
resp)
         throws ProcessingException {


Mime
View raw message