001    //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/wms/capabilities/WMSCapabilities_1_3_0.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.wms.capabilities;
037    
038    import java.util.LinkedList;
039    import java.util.List;
040    
041    import org.deegree.owscommon_new.OperationsMetadata;
042    import org.deegree.owscommon_new.ServiceIdentification;
043    import org.deegree.owscommon_new.ServiceProvider;
044    
045    /**
046     * This class is an 1.3.0 extension of the WMSCapabilities class.
047     *
048     * @author <a href="mailto:schmitz@lat-lon.de">Andreas Schmitz</a>
049     * @author last edited by: $Author: mschneider $
050     *
051     * @version 2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
052     *
053     * @since 2.0
054     */
055    
056    public class WMSCapabilities_1_3_0 extends WMSCapabilities {
057    
058        private static final long serialVersionUID = 1081688101474553998L;
059    
060        private int maxWidth;
061    
062        private int maxHeight;
063    
064        private int layerLimit;
065    
066        /**
067         * Constructs a new object with the given values. The difference to the 1.1.1 capabilities is that no user defined
068         * symbolization can be used, and layerLimit, maxWidth and maxHeight were added.
069         *
070         * @param version
071         * @param updateSequence
072         * @param serviceIdentification
073         * @param serviceProvider
074         * @param metadata
075         * @param layer
076         * @param layerLimit
077         * @param maxWidth
078         * @param maxHeight
079         */
080        protected WMSCapabilities_1_3_0( String version, String updateSequence,
081                                         ServiceIdentification serviceIdentification, ServiceProvider serviceProvider,
082                                         OperationsMetadata metadata, Layer layer, int layerLimit, int maxWidth,
083                                         int maxHeight ) {
084            super( version, updateSequence, serviceIdentification, serviceProvider, null, metadata, layer );
085            this.maxWidth = maxWidth;
086            this.maxHeight = maxHeight;
087            this.layerLimit = layerLimit;
088            exceptions = new LinkedList<String>();
089            if ( version.equals( "1.3.0" ) ) {
090                exceptions.add( "XML" );
091            } else {
092                exceptions.add( "application/vnd.ogc.se_xml" );
093            }
094        }
095    
096        protected WMSCapabilities_1_3_0( String version, String updateSequence,
097                                         ServiceIdentification serviceIdentification, ServiceProvider serviceProvider,
098                                         OperationsMetadata metadata, Layer layer, int layerLimit, int maxWidth,
099                                         int maxHeight, List<String> exceptions ) {
100            this( version, updateSequence, serviceIdentification, serviceProvider, metadata, layer, layerLimit, maxWidth,
101                  maxHeight );
102            this.exceptions = exceptions;
103        }
104    
105        /**
106         * @return the layerLimit.
107         */
108        public int getLayerLimit() {
109            return layerLimit;
110        }
111    
112        /**
113         * @return the maxHeight.
114         */
115        public int getMaxHeight() {
116            return maxHeight;
117        }
118    
119        /**
120         * @return the maxWidth.
121         */
122        public int getMaxWidth() {
123            return maxWidth;
124        }
125    
126    }