clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject clerezza git commit: CLEREZZA-998: Added @Consumes annotation to work around JERSEY-2845
Date Sat, 05 Sep 2015 09:29:26 GMT
Repository: clerezza
Updated Branches:
  refs/heads/master 804357139 -> ea0996014


CLEREZZA-998: Added @Consumes annotation to work around JERSEY-2845

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

Branch: refs/heads/master
Commit: ea0996014326a4aac0ed01cc57494207b2fb094c
Parents: 8043571
Author: Reto Gmür <reto@apache.org>
Authored: Sat Sep 5 11:29:09 2015 +0200
Committer: Reto Gmür <reto@apache.org>
Committed: Sat Sep 5 11:29:09 2015 +0200

----------------------------------------------------------------------
 provisioning/rdf.web/pom.xml                                   | 6 +++---
 rdf/web/rdf.web.core/pom.xml                                   | 2 +-
 .../src/main/java/org/apache/clerezza/rdf/web/core/Delete.java | 2 ++
 .../java/org/apache/clerezza/rdf/web/core/SparqlEndpoint.java  | 2 ++
 4 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea099601/provisioning/rdf.web/pom.xml
----------------------------------------------------------------------
diff --git a/provisioning/rdf.web/pom.xml b/provisioning/rdf.web/pom.xml
index 7ab596b..d35c231 100644
--- a/provisioning/rdf.web/pom.xml
+++ b/provisioning/rdf.web/pom.xml
@@ -25,7 +25,7 @@
     <parent>
         <groupId>org.apache.clerezza</groupId>
         <artifactId>clerezza</artifactId>
-        <version>8-SNAPSHOT</version>
+        <version>7</version>
         <relativePath>../../parent</relativePath>
     </parent>
     
@@ -52,7 +52,7 @@
         <dependency>
             <groupId>org.apache.clerezza</groupId>
             <artifactId>rdf.web.core</artifactId>
-            <version>1.0.0</version>
+            <version>1.0.1-SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>org.apache.clerezza</groupId>
@@ -72,7 +72,7 @@
         <dependency>
             <groupId>org.apache.clerezza</groupId>
             <artifactId>platform.globalmenu.api</artifactId>
-            <version>0.3</version>
+            <version>1.0.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.clerezza</groupId>

http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea099601/rdf/web/rdf.web.core/pom.xml
----------------------------------------------------------------------
diff --git a/rdf/web/rdf.web.core/pom.xml b/rdf/web/rdf.web.core/pom.xml
index ba8940e..9875ece 100644
--- a/rdf/web/rdf.web.core/pom.xml
+++ b/rdf/web/rdf.web.core/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.clerezza</groupId>
         <artifactId>clerezza</artifactId>
-        <version>8-SNAPSHOT</version>
+        <version>7</version>
         <relativePath>../../../parent</relativePath>
     </parent>
     <groupId>org.apache.clerezza</groupId>

http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea099601/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/Delete.java
----------------------------------------------------------------------
diff --git a/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/Delete.java
b/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/Delete.java
index 98e1aee..8e8876d 100644
--- a/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/Delete.java
+++ b/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/Delete.java
@@ -18,6 +18,7 @@
  */
 package org.apache.clerezza.rdf.web.core;
 
+import javax.ws.rs.Consumes;
 import javax.ws.rs.FormParam;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
@@ -60,6 +61,7 @@ public class Delete {
 
     
     @POST
+    @Consumes("application/x-www-form-urlencoded")
     public Response delete(@Context UriInfo uriInfo, @FormParam("graphName") IRI graphName)
{
         tcManager.deleteGraph(graphName);
         return RedirectUtil.createSeeOtherResponse("./", uriInfo);

http://git-wip-us.apache.org/repos/asf/clerezza/blob/ea099601/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/SparqlEndpoint.java
----------------------------------------------------------------------
diff --git a/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/SparqlEndpoint.java
b/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/SparqlEndpoint.java
index 0ddc042..4994f1c 100644
--- a/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/SparqlEndpoint.java
+++ b/rdf/web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/SparqlEndpoint.java
@@ -27,6 +27,7 @@ import java.security.PrivilegedAction;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.FormParam;
@@ -150,6 +151,7 @@ public class SparqlEndpoint {
      * @return either a {@link ImmutableGraph} or a {@link DOMSource}
      */
     @POST
+    @Consumes("application/x-www-form-urlencoded")
     public Object runFormQuery(@FormParam("query") String queryString,
             @FormParam("default-graph-uri") IRI defaultGraphUri,
             @FormParam("apply-style-sheet") String applyStyleSheet,


Mime
View raw message