[exo-jcr-commits] exo-jcr SVN: r1920 - jcr/trunk/applications/exo.jcr.component.cluster.test.client/src/main/java/org/exoplatform/services/jcr/cluster.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Feb 19 05:52:00 EST 2010


Author: dkatayev
Date: 2010-02-19 05:52:00 -0500 (Fri, 19 Feb 2010)
New Revision: 1920

Modified:
   jcr/trunk/applications/exo.jcr.component.cluster.test.client/src/main/java/org/exoplatform/services/jcr/cluster/JCRWebdavConnection.java
Log:
EXOJCR-393 method addNode(String name, HttpOutputStream stream, String mimeType) added to be able to specify node's mime type.

Modified: jcr/trunk/applications/exo.jcr.component.cluster.test.client/src/main/java/org/exoplatform/services/jcr/cluster/JCRWebdavConnection.java
===================================================================
--- jcr/trunk/applications/exo.jcr.component.cluster.test.client/src/main/java/org/exoplatform/services/jcr/cluster/JCRWebdavConnection.java	2010-02-19 10:21:51 UTC (rev 1919)
+++ jcr/trunk/applications/exo.jcr.component.cluster.test.client/src/main/java/org/exoplatform/services/jcr/cluster/JCRWebdavConnection.java	2010-02-19 10:52:00 UTC (rev 1920)
@@ -124,6 +124,13 @@
    {
       return Put(workspacePath + name, stream);
    }
+   
+   public HTTPResponse addNode(String name, HttpOutputStream stream, String mimeType) throws IOException, ModuleException
+   {
+      NVPair[] headers = new NVPair[1];
+      headers[0] = new NVPair(HttpHeaders.CONTENT_TYPE, mimeType);
+      return Put(workspacePath + name, stream, headers);
+   }
 
    public HTTPResponse removeNode(String name) throws IOException, ModuleException
    {



More information about the exo-jcr-commits mailing list