001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcwebservices/sos/capabilities/SOSCapabilities.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 Germany 032 E-Mail: poth@lat-lon.de 033 034 Prof. Dr. Klaus Greve 035 lat/lon GmbH 036 Aennchenstraße 19 037 53177 Bonn 038 Germany 039 E-Mail: greve@giub.uni-bonn.de 040 041 ---------------------------------------------------------------------------*/ 042 package org.deegree.ogcwebservices.sos.capabilities; 043 044 import java.io.IOException; 045 import java.net.URL; 046 import java.util.ArrayList; 047 048 import org.deegree.ogcwebservices.getcapabilities.Contents; 049 import org.deegree.ogcwebservices.getcapabilities.InvalidCapabilitiesException; 050 import org.deegree.ogcwebservices.getcapabilities.OGCCapabilities; 051 import org.deegree.ogcwebservices.getcapabilities.OperationsMetadata; 052 import org.deegree.ogcwebservices.getcapabilities.ServiceIdentification; 053 import org.deegree.ogcwebservices.getcapabilities.ServiceProvider; 054 import org.deegree.owscommon.OWSCommonCapabilities; 055 import org.xml.sax.SAXException; 056 057 /** 058 * Represents the SOS Capabilities 059 * 060 * @author <a href="mailto:mkulbe@lat-lon.de">Matthias Kulbe </a> 061 * 062 * @version 1.0 063 */ 064 065 public class SOSCapabilities extends OWSCommonCapabilities { 066 067 private ArrayList sensorList = new ArrayList(); 068 069 private ArrayList platformList = new ArrayList(); 070 071 /** 072 * createCapabilities 073 * 074 * @param url 075 * 076 */ 077 public static OGCCapabilities createCapabilities( URL url ) 078 throws IOException, SAXException, InvalidCapabilitiesException { 079 OGCCapabilities capabilities = null; 080 CapabilitiesDocument capabilitiesDoc = new CapabilitiesDocument(); 081 capabilitiesDoc.load( url ); 082 capabilities = capabilitiesDoc.parseCapabilities(); 083 return capabilities; 084 } 085 086 /** 087 * 088 * @param version 089 * @param updateSequence 090 * @param serviceIdentification 091 * @param serviceProvider 092 * @param operationsMetadata 093 * @param contents 094 * @param platformList 095 * @param sensorList 096 */ 097 public SOSCapabilities( String version, String updateSequence, ServiceIdentification serviceIdentification, 098 ServiceProvider serviceProvider, OperationsMetadata operationsMetadata, Contents contents, 099 ArrayList platformList, ArrayList sensorList ) { 100 101 super( version, updateSequence, serviceIdentification, serviceProvider, operationsMetadata, contents ); 102 103 this.platformList = platformList; 104 105 this.sensorList = sensorList; 106 } 107 108 /** 109 * 110 * @return sensorList 111 */ 112 public ArrayList getSensorList() { 113 return this.sensorList; 114 } 115 116 /** 117 * 118 * @return platformList 119 */ 120 public ArrayList getPlatformList() { 121 return this.platformList; 122 } 123 124 }