Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MapInfoService.java @ 2607:247f3e98a14b
Abjusted services to new hierachy.
flys-artifacts/trunk@4189 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 11:15:13 +0000 |
parents | 8284c8fca840 |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
2606:619f6dfec901 | 2607:247f3e98a14b |
---|---|
19 import de.intevation.artifacts.common.ArtifactNamespaceContext; | 19 import de.intevation.artifacts.common.ArtifactNamespaceContext; |
20 import de.intevation.artifacts.common.utils.Config; | 20 import de.intevation.artifacts.common.utils.Config; |
21 import de.intevation.artifacts.common.utils.XMLUtils; | 21 import de.intevation.artifacts.common.utils.XMLUtils; |
22 import de.intevation.artifacts.common.utils.XMLUtils.ElementCreator; | 22 import de.intevation.artifacts.common.utils.XMLUtils.ElementCreator; |
23 | 23 |
24 import de.intevation.artifactdatabase.DefaultService; | 24 import de.intevation.artifactdatabase.XMLService; |
25 | 25 |
26 import de.intevation.flys.model.River; | 26 import de.intevation.flys.model.River; |
27 | 27 |
28 import de.intevation.flys.utils.GeometryUtils; | 28 import de.intevation.flys.utils.GeometryUtils; |
29 | 29 |
31 * This service provides information about the supported rivers by this | 31 * This service provides information about the supported rivers by this |
32 * application. | 32 * application. |
33 * | 33 * |
34 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 34 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
35 */ | 35 */ |
36 public class MapInfoService extends DefaultService { | 36 public class MapInfoService extends XMLService { |
37 | 37 |
38 /** XPath that points to the river.*/ | 38 /** XPath that points to the river.*/ |
39 public static final String XPATH_RIVER = "/mapinfo/river/text()"; | 39 public static final String XPATH_RIVER = "/mapinfo/river/text()"; |
40 | 40 |
41 public static final String XPATH_RIVER_PROJECTION = | 41 public static final String XPATH_RIVER_PROJECTION = |
74 return (Node)XMLUtils.xpath( | 74 return (Node)XMLUtils.xpath( |
75 Config.getConfig(), query, XPathConstants.NODE, | 75 Config.getConfig(), query, XPathConstants.NODE, |
76 null, variables); | 76 null, variables); |
77 } | 77 } |
78 | 78 |
79 public Document process( | 79 @Override |
80 public Document processXML( | |
80 Document data, | 81 Document data, |
81 GlobalContext globalContext, | 82 GlobalContext globalContext, |
82 CallMeta callMeta | 83 CallMeta callMeta |
83 ) { | 84 ) { |
84 logger.debug("MapInfoService.process"); | 85 logger.debug("MapInfoService.process"); |