001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcwebservices/wmps/configuration/WMPSConfiguration.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.wmps.configuration; 043 044 import java.net.URL; 045 046 import org.deegree.ogcwebservices.getcapabilities.OperationsMetadata; 047 import org.deegree.ogcwebservices.getcapabilities.ServiceIdentification; 048 import org.deegree.ogcwebservices.getcapabilities.ServiceProvider; 049 import org.deegree.ogcwebservices.wmps.capabilities.WMPSCapabilities; 050 import org.deegree.ogcwebservices.wms.capabilities.Layer; 051 import org.deegree.ogcwebservices.wms.capabilities.UserDefinedSymbolization; 052 053 /** 054 * Represents the configuration for a deegree WMPS 1.0 instance. 055 * 056 * @author <a href="mailto:deshmukh@lat-lon.de">Anup Deshmukh</a> * 057 * 058 * @version 2.0 059 * 060 */ 061 public class WMPSConfiguration extends WMPSCapabilities { 062 063 private static final long serialVersionUID = -7940857863171829848L; 064 065 066 // this is the size of one inch in m 067 public static final double INCH2M = 0.0254; 068 069 private URL baseURL; 070 071 private WMPSDeegreeParams deegreeParams; 072 073 /** 074 * Generates a new <code>WFSConfiguration</code> instance from the given parameters. 075 * 076 * @param version 077 * 078 * @param serviceIdentification 079 * @param serviceProvider 080 * @param userDefinedSymbolization 081 * @param metadata 082 * @param layer 083 * @param deegreeParams 084 * @param baseURL 085 */ 086 public WMPSConfiguration( String version, ServiceIdentification serviceIdentification, 087 ServiceProvider serviceProvider, 088 UserDefinedSymbolization userDefinedSymbolization, 089 OperationsMetadata metadata, Layer layer, 090 WMPSDeegreeParams deegreeParams, URL baseURL ) { 091 092 super( version, serviceIdentification, serviceProvider, userDefinedSymbolization, metadata, 093 layer ); 094 095 this.deegreeParams = deegreeParams; 096 this.baseURL = baseURL; 097 } 098 099 /** 100 * @return Returns the deegreeParams. 101 */ 102 public WMPSDeegreeParams getDeegreeParams() { 103 return this.deegreeParams; 104 } 105 106 /** 107 * @param deegreeParams 108 * The deegreeParams to set. 109 */ 110 public void setDeegreeParams( WMPSDeegreeParams deegreeParams ) { 111 this.deegreeParams = deegreeParams; 112 } 113 114 /** 115 * @return Gets the base URL which is used to resolve file resource (XSL sheets). 116 */ 117 public URL getBaseURL() { 118 return this.baseURL; 119 } 120 }