001 //$HeadURL: $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 This file is part of deegree. 004 Copyright (C) 2001-2008 by: 005 Department of Geography, University of Bonn 006 http://www.giub.uni-bonn.de/deegree/ 007 lat/lon GmbH 008 http://www.lat-lon.de 009 010 This library is free software; you can redistribute it and/or 011 modify it under the terms of the GNU Lesser General Public 012 License as published by the Free Software Foundation; either 013 version 2.1 of the License, or (at your option) any later version. 014 This library is distributed in the hope that it will be useful, 015 but WITHOUT ANY WARRANTY; without even the implied warranty of 016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 017 Lesser General Public License for more details. 018 You should have received a copy of the GNU Lesser General Public 019 License along with this library; if not, write to the Free Software 020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 021 Contact: 022 023 Andreas Poth 024 lat/lon GmbH 025 Aennchenstr. 19 026 53177 Bonn 027 Germany 028 E-Mail: poth@lat-lon.de 029 030 Prof. Dr. Klaus Greve 031 Department of Geography 032 University of Bonn 033 Meckenheimer Allee 166 034 53115 Bonn 035 Germany 036 E-Mail: greve@giub.uni-bonn.de 037 ---------------------------------------------------------------------------*/ 038 039 040 package org.deegree.ogcwebservices.wcts.operation; 041 042 import java.util.ArrayList; 043 import java.util.List; 044 045 import org.deegree.ogcwebservices.AbstractOGCWebServiceRequest; 046 import org.deegree.ogcwebservices.wcts.WCTService; 047 048 /** 049 * <code>WCTSGetCapabilities</code> bean representation of a GetCapabilities request. 050 * 051 * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a> 052 * 053 * @author last edited by: $Author:$ 054 * 055 * @version $Revision:$, $Date:$ 056 * 057 */ 058 public class WCTSGetCapabilities extends AbstractOGCWebServiceRequest{ 059 060 private static final long serialVersionUID = 6951749192378539154L; 061 062 private final String updateSequence; 063 private final List<String> acceptedVersions; 064 private final List<String> sections; 065 private final List<String> acceptedFormats; 066 067 /** 068 * @param id of the request 069 * @param updateSequence 070 * @param acceptedVersions 071 * @param sections 072 * @param acceptedFormats 073 */ 074 public WCTSGetCapabilities( String id, String updateSequence, List<String> acceptedVersions, 075 List<String> sections, List<String> acceptedFormats ) { 076 super( WCTService.version, id, null ); 077 if( updateSequence == null ){ 078 updateSequence = new String(); 079 } 080 if( acceptedVersions == null ){ 081 acceptedVersions = new ArrayList<String>(); 082 } 083 if( sections == null ){ 084 sections = new ArrayList<String>(); 085 } 086 if( acceptedFormats == null ){ 087 acceptedFormats = new ArrayList<String>(); 088 } 089 this.updateSequence = updateSequence; 090 this.acceptedVersions = acceptedVersions; 091 this.sections = sections; 092 this.acceptedFormats = acceptedFormats; 093 } 094 095 /* (non-Javadoc) 096 * @see org.deegree.ogcwebservices.OGCWebServiceRequest#getServiceName() 097 */ 098 public String getServiceName() { 099 return "WCTS"; 100 } 101 102 /** 103 * @return the updateSequence, can be empty but never <code>null</code> 104 */ 105 public final String getUpdateSequence() { 106 return updateSequence; 107 } 108 109 /** 110 * @return the acceptedVersions, can be empty but never <code>null</code> 111 */ 112 public final List<String> getAcceptedVersions() { 113 return acceptedVersions; 114 } 115 116 /** 117 * @return the sections, can be empty but never <code>null</code> 118 */ 119 public final List<String> getSections() { 120 return sections; 121 } 122 123 /** 124 * @return the acceptedFormats, can be empty but never <code>null</code> 125 */ 126 public final List<String> getAcceptedFormats() { 127 return acceptedFormats; 128 } 129 130 } 131