001    //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcwebservices/wms/configuration/WMSConfiguration.java $
002    /*----------------    FILE HEADER  ------------------------------------------
003    
004     This file is part of deegree.
005     Copyright (C) 2001-2007 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    
046    import org.deegree.ogcwebservices.wms.capabilities.Layer;
047    import org.deegree.ogcwebservices.wms.capabilities.UserDefinedSymbolization;
048    import org.deegree.ogcwebservices.wms.capabilities.WMSCapabilities;
049    import org.deegree.owscommon_new.OperationsMetadata;
050    import org.deegree.owscommon_new.ServiceIdentification;
051    import org.deegree.owscommon_new.ServiceProvider;
052    
053    /**
054     * Represents the configuration for a deegree WFS 1.1.1 instance (or earlier). Implements the
055     * WMSConfigurationType interface required by all configurations.
056     * 
057     * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </a>
058     * @author last edited by: $Author: apoth $
059     * 
060     * @version 2.0, $Revision: 6846 $, $Date: 2007-05-07 13:27:04 +0200 (Mo, 07 Mai 2007) $
061     * 
062     * @since 2.0
063     */
064    public class WMSConfiguration extends WMSCapabilities implements WMSConfigurationType {
065    
066        private static final long serialVersionUID = -9123110374834641390L;
067    
068        private URL baseURL;
069    
070        private WMSDeegreeParams deegreeParams;
071    
072        /**
073         * Generates a new <code>WFSConfiguration</code> instance from the given parameters.
074         * 
075         * @param version
076         * @param updateSequence
077         * @param serviceIdentification
078         * @param serviceProvider
079         * @param userDefinedSymbolization 
080         * @param metadata 
081         * @param layer 
082         * @param deegreeParams
083         * @param baseURL
084         */
085        public WMSConfiguration( String version, String updateSequence,
086                                ServiceIdentification serviceIdentification,
087                                ServiceProvider serviceProvider,
088                                UserDefinedSymbolization userDefinedSymbolization,
089                                OperationsMetadata metadata, Layer layer,
090                                WMSDeegreeParams deegreeParams, URL baseURL ) {
091            super( version, updateSequence, serviceIdentification, serviceProvider,
092                userDefinedSymbolization, metadata, layer );
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        /* (non-Javadoc)
120         * @see org.deegree.ogcwebservices.wms.configuration.WMSConfigurationType#calculateVersion(java.lang.String)
121         */
122        public String calculateVersion( String version ) {
123            return "1.1.1";
124        }
125    
126    }