clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1497863 - in /clerezza/trunk: platform.content/src/main/java/org/apache/clerezza/platform/content/ platform.scripting.scriptmanager/src/main/java/org/apache/clerezza/platform/scripting/scriptmanager/ rdf.web/rdf.web.core/src/main/java/org/...
Date Fri, 28 Jun 2013 18:09:47 GMT
Author: reto
Date: Fri Jun 28 18:09:46 2013
New Revision: 1497863

URL: http://svn.apache.org/r1497863
Log:
CLREZZA-795: fulex media type for multipart form

Modified:
    clerezza/trunk/platform.content/src/main/java/org/apache/clerezza/platform/content/ContentPostSupport.java
    clerezza/trunk/platform.scripting.scriptmanager/src/main/java/org/apache/clerezza/platform/scripting/scriptmanager/ScriptManager.java
    clerezza/trunk/rdf.web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/WebAccess.java

Modified: clerezza/trunk/platform.content/src/main/java/org/apache/clerezza/platform/content/ContentPostSupport.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/platform.content/src/main/java/org/apache/clerezza/platform/content/ContentPostSupport.java?rev=1497863&r1=1497862&r2=1497863&view=diff
==============================================================================
--- clerezza/trunk/platform.content/src/main/java/org/apache/clerezza/platform/content/ContentPostSupport.java
(original)
+++ clerezza/trunk/platform.content/src/main/java/org/apache/clerezza/platform/content/ContentPostSupport.java
Fri Jun 28 18:09:46 2013
@@ -59,7 +59,7 @@ public class ContentPostSupport {
     /**
      * Creates an InfoDiscoBt (aka Binary Content) in the content graph.<br/>
      * This JAX-RS method is available under the path "content". It requires
-     * a multipart/form with two fields: "content", which is the content of the
+     * a multipart/form-data with two fields: "content", which is the content of the
      * InfoDiscobit to be created and "uri" which is the uri of the new
      * InfoDiscoBit.
      *
@@ -70,7 +70,7 @@ public class ContentPostSupport {
      * resource already exists.
      */
     @POST
-    @Consumes("multipart/form")
+    @Consumes("multipart/form-data")
     public Response postContent(MultiPartBody form) {
         FormFile formFile = form.getFormFileParameterValues("content")[0];
         String uri = form.getTextParameterValues("uri")[0];

Modified: clerezza/trunk/platform.scripting.scriptmanager/src/main/java/org/apache/clerezza/platform/scripting/scriptmanager/ScriptManager.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/platform.scripting.scriptmanager/src/main/java/org/apache/clerezza/platform/scripting/scriptmanager/ScriptManager.java?rev=1497863&r1=1497862&r2=1497863&view=diff
==============================================================================
--- clerezza/trunk/platform.scripting.scriptmanager/src/main/java/org/apache/clerezza/platform/scripting/scriptmanager/ScriptManager.java
(original)
+++ clerezza/trunk/platform.scripting.scriptmanager/src/main/java/org/apache/clerezza/platform/scripting/scriptmanager/ScriptManager.java
Fri Jun 28 18:09:46 2013
@@ -380,7 +380,7 @@ public class ScriptManager implements Gl
      *
      */
     @POST
-    @Consumes("multipart/form")
+    @Consumes("multipart/form-data")
     @Path("install-script")
     public Response installScript(MultiPartBody form,
             @Context UriInfo uriInfo) {
@@ -470,7 +470,7 @@ public class ScriptManager implements Gl
      *
      */
     @POST
-    @Consumes("multipart/form")
+    @Consumes("multipart/form-data")
     @Path("update-script")
     public Response updateScript(MultiPartBody form, @Context UriInfo uriInfo) {
         AccessController.checkPermission(new ScriptManagerAppPermission());

Modified: clerezza/trunk/rdf.web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/WebAccess.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/WebAccess.java?rev=1497863&r1=1497862&r2=1497863&view=diff
==============================================================================
--- clerezza/trunk/rdf.web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/WebAccess.java
(original)
+++ clerezza/trunk/rdf.web/rdf.web.core/src/main/java/org/apache/clerezza/rdf/web/core/WebAccess.java
Fri Jun 28 18:09:46 2013
@@ -157,7 +157,7 @@ public class WebAccess {
      *            {@link MGraph} is created.
      */
     @POST
-    @Consumes("multipart/form")
+    @Consumes("multipart/form-data")
     public Response postTriples(MultiPartBody form, @Context UriInfo uriInfo) {
 
         AccessController.checkPermission(new WebAccessPermission());



Mime
View raw message