cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf-fediz git commit: [FEDIZ-131] Completing the cxf plugin demo
Date Fri, 13 Nov 2015 15:16:43 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 9f05f8969 -> a9ac5873d


[FEDIZ-131] Completing the cxf plugin demo


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

Branch: refs/heads/master
Commit: a9ac5873d4fb1c11d623b219c20555adb37f4c7d
Parents: 9f05f89
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Nov 13 15:16:29 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Nov 13 15:16:29 2015 +0000

----------------------------------------------------------------------
 .../apache/cxf/fediz/example/FederationService.java    | 13 ++++++++++---
 examples/pom.xml                                       |  1 +
 2 files changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/a9ac5873/examples/jaxrsCxfPluginWebapp/src/main/java/org/apache/cxf/fediz/example/FederationService.java
----------------------------------------------------------------------
diff --git a/examples/jaxrsCxfPluginWebapp/src/main/java/org/apache/cxf/fediz/example/FederationService.java
b/examples/jaxrsCxfPluginWebapp/src/main/java/org/apache/cxf/fediz/example/FederationService.java
index fa31a87..471b8bf 100644
--- a/examples/jaxrsCxfPluginWebapp/src/main/java/org/apache/cxf/fediz/example/FederationService.java
+++ b/examples/jaxrsCxfPluginWebapp/src/main/java/org/apache/cxf/fediz/example/FederationService.java
@@ -25,6 +25,7 @@ import java.util.Arrays;
 import java.util.List;
 
 import javax.ws.rs.GET;
+import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.core.Context;
 import javax.ws.rs.core.Response;
@@ -49,10 +50,16 @@ import org.apache.cxf.fediz.core.SecurityTokenThreadLocal;
 
 @Path("/")
 public class FederationService {
-
+    @Context 
+    private UriInfo uriInfo;
+    @Context 
+    private SecurityContext securityContext;
+    @POST
+    public Response getTokenInfoFromPost() {
+        return getTokenInfo();
+    }
     @GET
-    public Response get(@Context UriInfo uriInfo,
-                        @Context SecurityContext securityContext) {
+    public Response getTokenInfo() {
 
         ResponseBuilder rb = Response.ok().type("text/html");
 

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/a9ac5873/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
index e6c6490..d77b8d6 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -39,6 +39,7 @@
         <module>springPreauthWebapp</module>
         <module>jaxrsSimpleWebapp</module>
         <module>jaxrsSpringSecurityWebapp</module>
+        <module>jaxrsCxfPluginWebapp</module>
     </modules>
 	
 	<profiles>


Mime
View raw message