annotate gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/map/DefaultMapService.java @ 994:541ff0db1b12

Added the informations about how the WMS which was published during the Workflow to the GUI gnv/trunk@1195 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 11 Jun 2010 08:08:33 +0000
parents cfc7bd35ee0b
children 28a0628b11b0
rev   line source
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
1 package de.intevation.gnv.artifactdatabase.objects.map;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 import java.util.Collection;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
4
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5 /**
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
6 * The default implementation of <code>MapService</code>.
699
af22fa5567a6 Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 690
diff changeset
7 *
684
57fa8019fbdc Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>'
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 683
diff changeset
8 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 */
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
10 public class DefaultMapService implements MapService {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
12 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
13 * The id of this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
14 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 private String id = null;
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
16
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
17 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
18 * The layer which are provided by this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
19 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20 private Collection<Layer> layer = null;
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
21
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
22 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
23 * The type of this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
24 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
25 private String type = null;
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
26
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
27 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
28 * The URl of this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
29 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 private String url = null;
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
31
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
32 /**
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
33 * The Bbox which surrounds the data of the Mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
34 */
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
35 private String bbox = null;
994
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
36
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
37 /**
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
38 * The time until the server will provide the data.
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
39 */
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
40 private String ttl = null;
699
af22fa5567a6 Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 690
diff changeset
41
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42 /**
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43 * Constructor
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
44 *
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
45 * @param id the id of this mapservice
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
46 * @param layer the layer which are provided by this mapservice
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
47 * @param type the type of this mapservice
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
48 * @param url the URl of this mapservice
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
49 */
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
50 public DefaultMapService(String id, Collection<Layer> layer,
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
51 String type, String url) {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
52 super();
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
53 this.id = id;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
54 this.layer = layer;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
55 this.type = type;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
56 this.url = url;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
57 }
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
58
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
59 /**
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
60 * Constructor
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
61 *
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
62 * @param id the id of this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
63 * @param layer the layer which are provided by this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
64 * @param type the type of this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
65 * @param url the URl of this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
66 * @param bbox the Bbox which surrounds the data of the Mapservice
994
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
67 * @param ttl the time until the server will provide the data.
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
68 */
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
69 public DefaultMapService(String id, Collection<Layer> layer,
994
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
70 String type, String url, String bbox, String ttl) {
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
71 this(id,layer,type,url);
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
72 this.bbox = bbox;
994
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
73 this.ttl = ttl;
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
74 }
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
75
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
76
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
77 public String getID() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
78 return this.id;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
79 }
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
80
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
81
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
82 public Collection<Layer> getLayer() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
83 return this.layer;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
84 }
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
85
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
86
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
87 public String getType() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
88 return this.type;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
89 }
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
90
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
91
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
92 public String getURL() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
93 return this.url;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
94 }
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
95
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
96 public String getBBoxValue() {
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
97 return this.bbox;
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
98 }
994
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
99 public String getTtl() {
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
100 return this.ttl;
541ff0db1b12 Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents: 984
diff changeset
101 }
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
102 }
700
89ade245ca7a Using unix line endings only.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 699
diff changeset
103 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org