changeset 22:72abee95fd64

Removed meta data from resources. artifacts/trunk@55 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Sep 2009 16:36:46 +0000
parents 1cd268e07e44
children 00596a591a2f
files Changelog artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java
diffstat 4 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Wed Sep 09 15:43:47 2009 +0000
+++ b/Changelog	Wed Sep 09 16:36:46 2009 +0000
@@ -1,3 +1,12 @@
+2009-09-09	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* trunk/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java,
+	trunk/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java:
+	Removed meta data from resources. They prevented serving the right results.
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
+	Removed needless import.
+
 2009-09-09	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Wed Sep 09 15:43:47 2009 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Wed Sep 09 16:36:46 2009 +0000
@@ -9,7 +9,6 @@
 import java.sql.PreparedStatement;
 import java.sql.Types;
 import java.sql.ResultSet;
-import java.sql.Timestamp;
 
 import javax.sql.DataSource;
 
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java	Wed Sep 09 15:43:47 2009 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java	Wed Sep 09 16:36:46 2009 +0000
@@ -16,7 +16,6 @@
 import org.apache.log4j.Logger;
 
 import de.intevation.artifactdatabase.XMLUtils;
-import de.intevation.artifactdatabase.Config;
 
 import org.restlet.representation.Representation;
 import org.restlet.representation.EmptyRepresentation;
@@ -33,7 +32,7 @@
 
     public static final String PATH = "/create";
 
-    @Post("xml:xml")
+    @Post
     public Representation represent() {
 
         Request request = getRequest();
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java	Wed Sep 09 15:43:47 2009 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java	Wed Sep 09 16:36:46 2009 +0000
@@ -9,6 +9,8 @@
 
 import org.restlet.ext.xml.DomRepresentation;
 
+import org.restlet.representation.Representation;
+
 import de.intevation.artifactdatabase.XMLUtils;
 import de.intevation.artifactdatabase.XMLUtils.ElementCreator;
 
@@ -29,8 +31,8 @@
     
     public static final String PATH = "/factories";
 
-    @Get("xml:xml")
-    public DomRepresentation represent() {
+    @Get
+    public Representation represent() {
 
         Document document = XMLUtils.newDocument();
 

http://dive4elements.wald.intevation.org