changeset 83:e7c4ae4b5eba

Set generalError in response.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 07 Jun 2013 14:34:46 +0200
parents bd41680cc7d5
children 74a488e52dde
files src/main/java/de/intevation/lada/rest/LProbeService.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri Jun 07 14:30:31 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri Jun 07 14:34:46 2013 +0200
@@ -80,7 +80,7 @@
         MultivaluedMap<String, String> params = info.getQueryParameters();
         if (params.isEmpty()) {
             List<LProbe> items = repository.findAll(LProbe.class);
-            return new Response(true, "200", items);
+            return new Response(true, repository.getGeneralError(), items);
         }
         String mstId = "";
         String uwbId = "";
@@ -101,7 +101,7 @@
             }
         }
         List<LProbe> items = repository.filter(mstId, uwbId, begin);
-        return new Response(true, "200", items);
+        return new Response(true, repository.getGeneralError(), items);
     }
 
     @PUT
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)