[Yanel-commits] rev 29414 - public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf

michi at wyona.com michi at wyona.com
Sat Dec 1 00:53:29 CET 2007


Author: michi
Date: 2007-12-01 00:53:28 +0100 (Sat, 01 Dec 2007)
New Revision: 29414

Modified:
   public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java
Log:
set mime type

Modified: public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java	2007-11-30 23:46:28 UTC (rev 29413)
+++ public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java	2007-11-30 23:53:28 UTC (rev 29414)
@@ -250,6 +250,8 @@
             // TODO: create node recursively ...
             getProfilesRepository().getNode(new org.wyona.commons.io.Path(path).getParent().toString()).addNode(new org.wyona.commons.io.Path(path).getName().toString(), org.wyona.yarep.core.NodeType.RESOURCE);
         }
+        getProfilesRepository().getNode(path).setMimeType("application/xml");
+        //getProfilesRepository().getNode(path).setMimeType("text/xml");
         return getProfilesRepository().getNode(path).getOutputStream();
     }
 



More information about the Yanel-commits mailing list