annotate flys-client/src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java @ 5151:240ff7aeb6de

DoubleUtil: Use tolerance when comparing doubles in explode(). Fixes flys/issue1132.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 01 Mar 2013 10:04:57 +0100
parents 9115b2a28be1
children
rev   line source
1426
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.client.server;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
2
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
3 import java.util.ArrayList;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
4 import java.util.HashMap;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
5 import java.util.Map;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
6
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
7 import javax.xml.xpath.XPathConstants;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
8
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
9 import org.w3c.dom.Document;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10 import org.w3c.dom.Element;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
11 import org.w3c.dom.NodeList;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
12
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
13 import org.apache.log4j.Logger;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
15 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
16
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
17 import de.intevation.artifacts.common.ArtifactNamespaceContext;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
18 import de.intevation.artifacts.common.utils.XMLUtils;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
19
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
20 import de.intevation.artifacts.httpclient.exceptions.ConnectionException;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
21 import de.intevation.artifacts.httpclient.http.HttpClient;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
22 import de.intevation.artifacts.httpclient.http.HttpClientImpl;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
23
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
24 import de.intevation.flys.client.shared.exceptions.ServerException;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
25 import de.intevation.flys.client.client.services.CrossSectionKMService;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
26
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
27 /**
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
28 * Interact with not documented service.
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
29 */
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
30 public class CrossSectionKMServiceImpl
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
31 extends RemoteServiceServlet
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
32 implements CrossSectionKMService
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
33 {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
34 private static final Logger logger =
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
35 Logger.getLogger(CrossSectionKMServiceImpl.class);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
36
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
37 /** XPath that points to the found cross section measurements. */
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
38 public static final String XPATH_CROSS_SECTIONS
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
39 = "/cross-sections/cross-section";
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
40
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
41 /** The error message key that is thrown if an error occured while getting
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
42 * new data. */
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
43 public static final String ERROR_GET_CROSS_SECTION
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
44 = "error_get_cross_section";
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
45
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
46
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
47 /**
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
48 * Fetches positions (kms) at which measurements for given cross-sections
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
49 * exists.
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
50 *
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
51 * @param data Map of Integer (cross-section-id) to km.
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
52 *
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
53 */
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
54 public Map<Integer,Double[]> getCrossSectionKMs(
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
55 String locale,
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
56 Map<Integer, Double> data,
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
57 int nNeighbours)
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
58 throws ServerException
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
59 {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
60 logger.info("CrossSectionKMService.getCrossSectionKMs");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
61
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
62 String url = getServletContext().getInitParameter("server-url");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
63
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
64 Document doc = XMLUtils.newDocument();
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
65
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
66 XMLUtils.ElementCreator ec = new XMLUtils.ElementCreator(
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
67 doc,
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
68 ArtifactNamespaceContext.NAMESPACE_URI,
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
69 ArtifactNamespaceContext.NAMESPACE_PREFIX);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
70 Element crossSection = ec.create("cross-sections");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
71
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
72 doc.appendChild(crossSection);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
73
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
74 for(Map.Entry<Integer, Double> oneCrossSection : data.entrySet()) {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
75 Element cs = ec.create("cross-section");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
76 cs.setAttribute("id", oneCrossSection.getKey().toString());
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
77 cs.setAttribute("km", oneCrossSection.getValue().toString());
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
78 cs.setAttribute("n", Integer.valueOf(nNeighbours).toString());
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
79 crossSection.appendChild(cs);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
80 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
81
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
82 HttpClient client = new HttpClientImpl(url, locale);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
83 logger.debug("Created httpclient");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
84
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
85 try {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
86 // Document should contain:
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
87 // crosse-sections:
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
88 // attribute(id), attribute(km) attribute(n)
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
89 Document response = client.callService(url, "cross-section-km", doc);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
90 //<cross-sections><cross-section id="1"><line km="19.5" line-id="189"/>...
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
91
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
92 NodeList nodeList = (NodeList) XMLUtils.xpath(response,
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
93 XPATH_CROSS_SECTIONS,
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
94 XPathConstants.NODESET);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
95
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
96 int num = nodeList.getLength();
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
97
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
98 Map<Integer, Double[]> result = new HashMap<Integer, Double[]>();
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
99
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
100 try{
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
101 for (int i = 0; i < num; i++) {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
102 Element csElement = (Element) nodeList.item(i);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
103
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
104 int idx = Integer.parseInt(csElement.getAttribute("id"));
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
105 ArrayList<Double> kms = new ArrayList<Double>();
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
106
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
107 NodeList lineNodes = csElement.getElementsByTagName("line");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
108 int numLines = lineNodes.getLength();
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
109 for (int k = 0; k < numLines; k++) {
1434
9115b2a28be1 Fix crosssectionkmservice.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1426
diff changeset
110 Element line = (Element) lineNodes.item(k);
1426
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
111 double d = Double.parseDouble(line.getAttribute("km"));
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
112 kms.add(d);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
113 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
114
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
115 Double[] doubles = new Double[kms.size()];
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
116 kms.toArray(doubles);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
117 result.put(Integer.valueOf(idx), doubles);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
118 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
119 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
120 catch(NumberFormatException nfe) {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
121 logger.error("Response was not parsable");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
122 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
123
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
124 return result;
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
125 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
126 catch (ConnectionException ce) {
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
127 logger.error("ConnectionExsp", ce);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
128 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
129
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
130 logger.warn("CrossSectionKMService.getCrossSectionKMS() - FAILED");
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
131 throw new ServerException(ERROR_GET_CROSS_SECTION);
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
132 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
133 }
fc8ff0ed64ca Added client for CrossSectionKMService.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
134 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org