diff flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java @ 3838:70976b711b7e

Extend RiverInfo and GaugeInfo to store also the info http url flys-client/trunk@5553 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 21 Sep 2012 10:52:42 +0000
parents dc505433173f
children 8e169e4e1b57
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java	Fri Sep 21 08:57:18 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java	Fri Sep 21 10:52:42 2012 +0000
@@ -81,6 +81,8 @@
                     ArtifactNamespaceContext.NAMESPACE_URI, "minq");
             String rmaxq = riverresp.getAttributeNS(
                     ArtifactNamespaceContext.NAMESPACE_URI, "maxq");
+            String rinfourl = riverresp.getAttributeNS(
+                    ArtifactNamespaceContext.NAMESPACE_URI, "info-url");
 
             logger.debug("River is " + rname);
 
@@ -125,6 +127,8 @@
                             ArtifactNamespaceContext.NAMESPACE_URI, "maxw");
                     String gstation = gaugeele.getAttributeNS(
                             ArtifactNamespaceContext.NAMESPACE_URI, "station");
+                    String ginfourl = riverresp.getAttributeNS(
+                            ArtifactNamespaceContext.NAMESPACE_URI, "info-url");
 
                     logger.debug("Found gauge with name " + gname);
 
@@ -140,7 +144,8 @@
                             parseDouble(gmaxq),
                             parseDouble(gminw),
                             parseDouble(gmaxw),
-                            rwstunit
+                            rwstunit,
+                            ginfourl
                             );
 
                     gauges.add(gaugeinfo);
@@ -155,6 +160,7 @@
                     rwstunit,
                     parseDouble(rminq),
                     parseDouble(rmaxq),
+                    rinfourl,
                     gauges);
 
             logger.debug("Finished RiverInfoService.");

http://dive4elements.wald.intevation.org