Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/MetaDataService.java @ 820:8288f4a0d7e6
Added more Javadoc.
gnv-artifacts/trunk@906 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 13:23:18 +0000 |
parents | 22c18083225e |
children | fe0263926870 |
comparison
equal
deleted
inserted
replaced
819:6925d18580c0 | 820:8288f4a0d7e6 |
---|---|
1 package de.intevation.gnv.artifacts.services; | 1 package de.intevation.gnv.artifacts.services; |
2 | 2 |
3 import java.util.ArrayList; | |
4 import java.util.Collection; | |
5 import java.util.Iterator; | |
6 | |
7 import javax.xml.xpath.XPathConstants; | |
8 | |
9 import org.apache.log4j.Logger; | |
10 import org.w3c.dom.Document; | |
11 import org.w3c.dom.Element; | |
12 import org.w3c.dom.Node; | |
13 import org.w3c.dom.NodeList; | |
14 | |
3 import com.vividsolutions.jts.geom.Geometry; | 15 import com.vividsolutions.jts.geom.Geometry; |
4 | |
5 import com.vividsolutions.jts.io.ParseException; | 16 import com.vividsolutions.jts.io.ParseException; |
6 import com.vividsolutions.jts.io.WKTReader; | 17 import com.vividsolutions.jts.io.WKTReader; |
7 | 18 |
8 import de.intevation.artifactdatabase.DefaultService; | 19 import de.intevation.artifactdatabase.DefaultService; |
9 import de.intevation.artifactdatabase.XMLUtils; | 20 import de.intevation.artifactdatabase.XMLUtils; |
10 | |
11 import de.intevation.artifacts.ArtifactNamespaceContext; | 21 import de.intevation.artifacts.ArtifactNamespaceContext; |
12 import de.intevation.artifacts.CallMeta; | 22 import de.intevation.artifacts.CallMeta; |
13 import de.intevation.artifacts.ServiceFactory; | 23 import de.intevation.artifacts.ServiceFactory; |
14 | |
15 import de.intevation.gnv.artifacts.services.requestobjects.DefaultFIS; | 24 import de.intevation.gnv.artifacts.services.requestobjects.DefaultFIS; |
16 import de.intevation.gnv.artifacts.services.requestobjects.DefaultLayer; | 25 import de.intevation.gnv.artifacts.services.requestobjects.DefaultLayer; |
17 import de.intevation.gnv.artifacts.services.requestobjects.DefaultMapService; | 26 import de.intevation.gnv.artifacts.services.requestobjects.DefaultMapService; |
18 import de.intevation.gnv.artifacts.services.requestobjects.DefaultParameter; | 27 import de.intevation.gnv.artifacts.services.requestobjects.DefaultParameter; |
19 import de.intevation.gnv.artifacts.services.requestobjects.FIS; | 28 import de.intevation.gnv.artifacts.services.requestobjects.FIS; |
20 import de.intevation.gnv.artifacts.services.requestobjects.Layer; | 29 import de.intevation.gnv.artifacts.services.requestobjects.Layer; |
21 import de.intevation.gnv.artifacts.services.requestobjects.MapService; | 30 import de.intevation.gnv.artifacts.services.requestobjects.MapService; |
22 import de.intevation.gnv.artifacts.services.requestobjects.Parameter; | 31 import de.intevation.gnv.artifacts.services.requestobjects.Parameter; |
23 | |
24 import de.intevation.gnv.geobackend.base.Result; | 32 import de.intevation.gnv.geobackend.base.Result; |
25 | |
26 import de.intevation.gnv.geobackend.base.query.QueryExecutor; | 33 import de.intevation.gnv.geobackend.base.query.QueryExecutor; |
27 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory; | 34 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory; |
28 | |
29 import de.intevation.gnv.geobackend.base.query.exception.QueryException; | 35 import de.intevation.gnv.geobackend.base.query.exception.QueryException; |
30 | |
31 import de.intevation.gnv.utils.ArtifactXMLUtilities; | 36 import de.intevation.gnv.utils.ArtifactXMLUtilities; |
32 | 37 |
33 import java.util.ArrayList; | |
34 import java.util.Collection; | |
35 import java.util.Iterator; | |
36 | |
37 import javax.xml.xpath.XPathConstants; | |
38 | |
39 import org.apache.log4j.Logger; | |
40 | |
41 import org.w3c.dom.Document; | |
42 import org.w3c.dom.Element; | |
43 import org.w3c.dom.Node; | |
44 import org.w3c.dom.NodeList; | |
45 | |
46 /** | 38 /** |
39 * This Class Provides the Functionality to return only those | |
40 * Artifacfactories which fulfill the conditions of the Request. | |
41 * | |
42 * This Service is used to implement the Functionality of the MV-GNV-Interface | |
43 * by looking if an Region of an FIS is intersecting the Area which is send | |
44 * during the Request or which FIS belongs to the requested MapServices. | |
45 * | |
47 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 46 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
48 * | 47 * |
49 */ | 48 */ |
50 public class MetaDataService extends DefaultService { | 49 public class MetaDataService extends DefaultService { |
51 | 50 |
441 .trim(); | 440 .trim(); |
442 } | 441 } |
443 return returnValue; | 442 return returnValue; |
444 } | 443 } |
445 | 444 |
446 /** | |
447 * @param factory | |
448 * @param globalContext | |
449 * @see de.intevation.artifactdatabase.DefaultService#setup(de.intevation.artifacts.ServiceFactory, java.lang.Object) | |
450 */ | |
451 @Override | 445 @Override |
452 public void setup(ServiceFactory factory, Object globalContext) { | 446 public void setup(ServiceFactory factory, Object globalContext) { |
453 log.debug("MetaDataService.setup"); | 447 log.debug("MetaDataService.setup"); |
454 super.setup(factory, globalContext); | 448 super.setup(factory, globalContext); |
455 // TODO: Perhaps it is necessary to init the QueryIds here. | 449 // TODO: Perhaps it is necessary to init the QueryIds here. |