001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/portal/context/DataService.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2008 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 008 lat/lon GmbH 009 http://www.lat-lon.de 010 011 This library is free software; you can redistribute it and/or 012 modify it under the terms of the GNU Lesser General Public 013 License as published by the Free Software Foundation; either 014 version 2.1 of the License, or (at your option) any later version. 015 016 This library is distributed in the hope that it will be useful, 017 but WITHOUT ANY WARRANTY; without even the implied warranty of 018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 019 Lesser General Public License for more details. 020 021 You should have received a copy of the GNU Lesser General Public 022 License along with this library; if not, write to the Free Software 023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 024 025 Contact: 026 027 Andreas Poth 028 lat/lon GmbH 029 Aennchenstr. 19 030 53115 Bonn 031 Germany 032 E-Mail: poth@lat-lon.de 033 034 Prof. Dr. Klaus Greve 035 Department of Geography 036 University of Bonn 037 Meckenheimer Allee 166 038 53115 Bonn 039 Germany 040 E-Mail: greve@giub.uni-bonn.de 041 042 043 ---------------------------------------------------------------------------*/ 044 package org.deegree.portal.context; 045 046 047 048 /** 049 * describes the service lying behind a WMS layer. This can be a WFS, a WCS or 050 * a cascaded WMS. If the dataservice is a WFS an instance of this class also 051 * provides informations about the geometry type delivered by the WFS for this 052 * assigned feature type. If the service is a WCS the geometry type attribute 053 * contains the type of coverage assigned to the layer (Grid, TIN, Thiessen 054 * polygon ...) 055 * 056 * @version $Revision: 9346 $ 057 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a> 058 */ 059 public class DataService { 060 private Server server = null; 061 private String featureType = null; 062 private String geometryType = null; 063 064 /** 065 * Creates a new DataService object. 066 * 067 * @param server server description 068 * @param featureType feature type provided by the server if it's a WFS 069 * @param geometryType geometry type or coverage type if the server is a 070 * WFS or a WCS 071 */ 072 public DataService( Server server, String featureType, String geometryType ) { 073 setServer( server ); 074 setFeatureType( featureType ); 075 setGeometryType( geometryType ); 076 } 077 078 /** 079 * returns the an instance of an object describing the service/server behind 080 * a WMS layer 081 * 082 * @return instance of <tt>Server</tt> 083 */ 084 public Server getServer() { 085 return server; 086 } 087 088 /** 089 * sets the an instance of an object describing the service/server behind 090 * a WMS layer 091 * 092 * @param server server description 093 */ 094 public void setServer( Server server ) { 095 this.server = server; 096 } 097 098 /** 099 * returns the featuretype assigned to the WMS layer if the server behind it 100 * is a WFS 101 * 102 * @return 103 */ 104 public String getFeatureType() { 105 return featureType; 106 } 107 108 /** 109 * sets the featuretype assigned to the WMS layer if the server behind it 110 * is a WFS 111 * 112 * @param featureType 113 */ 114 public void setFeatureType( String featureType ) { 115 this.featureType = featureType; 116 } 117 118 /** 119 * returns the geometry type or coverage type provided by the server behind 120 * a WMS layer if the server is a WFS or a WCS 121 * 122 * @return 123 */ 124 public String getGeometryType() { 125 return geometryType; 126 } 127 128 /** 129 * sets the geometry type or coverage type provided by the server behind 130 * a WMS layer if the server is a WFS or a WCS 131 * 132 * @param geometryType 133 */ 134 public void setGeometryType( String geometryType ) { 135 this.geometryType = geometryType; 136 } 137 138 }