001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcwebservices/wms/configuration/WMSConfiguration.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 Aennchenstraße 19 030 53177 Bonn 031 E-Mail: poth@lat-lon.de 032 033 Prof. Dr. Klaus Greve 034 Department of Geography 035 University of Bonn 036 Meckenheimer Allee 166 037 53115 Bonn 038 Germany 039 E-Mail: greve@giub.uni-bonn.de 040 041 ---------------------------------------------------------------------------*/ 042 package org.deegree.ogcwebservices.wms.configuration; 043 044 import java.net.URL; 045 import java.util.List; 046 047 import org.deegree.ogcwebservices.wms.capabilities.Layer; 048 import org.deegree.ogcwebservices.wms.capabilities.UserDefinedSymbolization; 049 import org.deegree.ogcwebservices.wms.capabilities.WMSCapabilities; 050 import org.deegree.owscommon_new.OperationsMetadata; 051 import org.deegree.owscommon_new.ServiceIdentification; 052 import org.deegree.owscommon_new.ServiceProvider; 053 054 /** 055 * Represents the configuration for a deegree WFS 1.1.1 instance (or earlier). Implements the 056 * WMSConfigurationType interface required by all configurations. 057 * 058 * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </a> 059 * @author last edited by: $Author: apoth $ 060 * 061 * @version 2.0, $Revision: 9345 $, $Date: 2007-12-27 17:22:25 +0100 (Do, 27 Dez 2007) $ 062 * 063 * @since 2.0 064 */ 065 public class WMSConfiguration extends WMSCapabilities implements WMSConfigurationType { 066 067 private static final long serialVersionUID = -9123110374834641390L; 068 069 private URL baseURL; 070 071 private WMSDeegreeParams deegreeParams; 072 073 /** 074 * Generates a new <code>WFSConfiguration</code> instance from the given parameters. 075 * 076 * @param version 077 * @param updateSequence 078 * @param serviceIdentification 079 * @param serviceProvider 080 * @param userDefinedSymbolization 081 * @param metadata 082 * @param layer 083 * @param deegreeParams 084 * @param baseURL 085 * @param exceptions 086 */ 087 public WMSConfiguration( String version, String updateSequence, ServiceIdentification serviceIdentification, 088 ServiceProvider serviceProvider, UserDefinedSymbolization userDefinedSymbolization, 089 OperationsMetadata metadata, Layer layer, WMSDeegreeParams deegreeParams, URL baseURL, 090 List<String> exceptions ) { 091 super( version, updateSequence, serviceIdentification, serviceProvider, userDefinedSymbolization, metadata, 092 layer, exceptions ); 093 this.deegreeParams = deegreeParams; 094 this.baseURL = baseURL; 095 } 096 097 /** 098 * @return Returns the deegreeParams. 099 */ 100 public WMSDeegreeParams getDeegreeParams() { 101 return deegreeParams; 102 } 103 104 /** 105 * @param deegreeParams 106 * The deegreeParams to set. 107 */ 108 public void setDeegreeParams( WMSDeegreeParams deegreeParams ) { 109 this.deegreeParams = deegreeParams; 110 } 111 112 /** 113 * @return Gets the base URL which is used to resolve file resource (XSL sheets). 114 */ 115 public URL getBaseURL() { 116 return this.baseURL; 117 } 118 119 /* 120 * (non-Javadoc) 121 * 122 * @see org.deegree.ogcwebservices.wms.configuration.WMSConfigurationType#calculateVersion(java.lang.String) 123 */ 124 public String calculateVersion( String version ) { 125 return "1.1.1"; 126 } 127 128 }