[Yanel-commits] rev 21490 -
public/yanel/contributions/resources/world-time/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Mon Jan 8 00:15:09 CET 2007
Author: michi
Date: 2007-01-08 00:15:07 +0100 (Mon, 08 Jan 2007)
New Revision: 21490
Modified:
public/yanel/contributions/resources/world-time/src/java/org/wyona/yanel/impl/resources/ExampleResource.java
Log:
RTI creation has become obsolete
Modified: public/yanel/contributions/resources/world-time/src/java/org/wyona/yanel/impl/resources/ExampleResource.java
===================================================================
--- public/yanel/contributions/resources/world-time/src/java/org/wyona/yanel/impl/resources/ExampleResource.java 2007-01-07 23:14:17 UTC (rev 21489)
+++ public/yanel/contributions/resources/world-time/src/java/org/wyona/yanel/impl/resources/ExampleResource.java 2007-01-07 23:15:07 UTC (rev 21490)
@@ -111,22 +111,8 @@
*
*/
public void create(HttpServletRequest request) {
-
- // TODO: Move the major part of the following code into Yanel Core
- // Create RTI ...
Path newPath = getPath();
log.error("DEBUG: New path: " + newPath);
-
- try {
- org.wyona.yarep.core.Repository rtiRepo = getRealm().getRTIRepository();
-
- String content = "<{http://www.wyona.org/yanel/resource/1.0}world-time/>";
- java.io.Writer writer = rtiRepo.getWriter(new org.wyona.yarep.core.Path(newPath.getRTIPath().toString()));
- writer.write(content);
- writer.close();
- } catch(Exception e) {
- log.error(e.getMessage(), e);
- }
}
/**
More information about the Yanel-commits
mailing list