001    //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/wmps/configuration/WMPSConfiguration.java $
002    /*----------------------------------------------------------------------------
003     This file is part of deegree, http://deegree.org/
004     Copyright (C) 2001-2009 by:
005       Department of Geography, University of Bonn
006     and
007       lat/lon GmbH
008    
009     This library is free software; you can redistribute it and/or modify it under
010     the terms of the GNU Lesser General Public License as published by the Free
011     Software Foundation; either version 2.1 of the License, or (at your option)
012     any later version.
013     This library is distributed in the hope that it will be useful, but WITHOUT
014     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015     FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016     details.
017     You should have received a copy of the GNU Lesser General Public License
018     along with this library; if not, write to the Free Software Foundation, Inc.,
019     59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020    
021     Contact information:
022    
023     lat/lon GmbH
024     Aennchenstr. 19, 53177 Bonn
025     Germany
026     http://lat-lon.de/
027    
028     Department of Geography, University of Bonn
029     Prof. Dr. Klaus Greve
030     Postfach 1147, 53001 Bonn
031     Germany
032     http://www.geographie.uni-bonn.de/deegree/
033    
034     e-mail: info@deegree.org
035    ----------------------------------------------------------------------------*/
036    package org.deegree.ogcwebservices.wmps.configuration;
037    
038    import java.net.URL;
039    
040    import org.deegree.ogcwebservices.getcapabilities.OperationsMetadata;
041    import org.deegree.ogcwebservices.getcapabilities.ServiceIdentification;
042    import org.deegree.ogcwebservices.getcapabilities.ServiceProvider;
043    import org.deegree.ogcwebservices.wmps.capabilities.WMPSCapabilities;
044    import org.deegree.ogcwebservices.wms.capabilities.Layer;
045    import org.deegree.ogcwebservices.wms.capabilities.UserDefinedSymbolization;
046    
047    /**
048     * Represents the configuration for a deegree WMPS 1.0 instance.
049     *
050     * @author <a href="mailto:deshmukh@lat-lon.de">Anup Deshmukh</a> *
051     *
052     * @version 2.0
053     *
054     */
055    public class WMPSConfiguration extends WMPSCapabilities {
056    
057        private static final long serialVersionUID = -7940857863171829848L;
058    
059    
060        // this is the size of one inch in m
061        public static final double INCH2M = 0.0254;
062    
063        private URL baseURL;
064    
065        private WMPSDeegreeParams deegreeParams;
066    
067        /**
068         * Generates a new <code>WFSConfiguration</code> instance from the given parameters.
069         *
070         * @param version
071         *
072         * @param serviceIdentification
073         * @param serviceProvider
074         * @param userDefinedSymbolization
075         * @param metadata
076         * @param layer
077         * @param deegreeParams
078         * @param baseURL
079         */
080        public WMPSConfiguration( String version, ServiceIdentification serviceIdentification,
081                                 ServiceProvider serviceProvider,
082                                 UserDefinedSymbolization userDefinedSymbolization,
083                                 OperationsMetadata metadata, Layer layer,
084                                 WMPSDeegreeParams deegreeParams, URL baseURL ) {
085    
086            super( version, serviceIdentification, serviceProvider, userDefinedSymbolization, metadata,
087                   layer );
088    
089            this.deegreeParams = deegreeParams;
090            this.baseURL = baseURL;
091        }
092    
093        /**
094         * @return Returns the deegreeParams.
095         */
096        public WMPSDeegreeParams getDeegreeParams() {
097            return this.deegreeParams;
098        }
099    
100        /**
101         * @param deegreeParams
102         *            The deegreeParams to set.
103         */
104        public void setDeegreeParams( WMPSDeegreeParams deegreeParams ) {
105            this.deegreeParams = deegreeParams;
106        }
107    
108        /**
109         * @return Gets the base URL which is used to resolve file resource (XSL sheets).
110         */
111        public URL getBaseURL() {
112            return this.baseURL;
113        }
114    }