001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/ogcwebservices/csw/configuration/CatalogueDeegreeParams.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: Aennchenstr. 19
030: 53115 Bonn
031: Germany
032: E-Mail: poth@lat-lon.de
033:
034: Prof. Dr. Klaus Greve
035: Department of Geography
036: University of Bonn
037: Meckenheimer Allee 166
038: 53115 Bonn
039: Germany
040: E-Mail: greve@giub.uni-bonn.de
041:
042:
043: ---------------------------------------------------------------------------*/
044: package org.deegree.ogcwebservices.csw.configuration;
045:
046: import org.deegree.datatypes.xlink.SimpleLink;
047: import org.deegree.enterprise.DeegreeParams;
048: import org.deegree.io.JDBCConnection;
049: import org.deegree.model.metadata.iso19115.OnlineResource;
050:
051: /**
052: * Represents the specific <code>deegreeParams</code> section of the configuration for a deegree
053: * CSW 2.0 instance. This class encapsulates the deegree CWS specific parameters and inherits the
054: * parameters from the <code>DeegreeParams</code> class.
055: * <p>
056: * It adds the following elements to the common <code>deegreeParams<code>:<table border="1">
057: * <tr>
058: * <th>Name</th>
059: * <th>Mandatory</th>
060: * <th>Function</th>
061: * </tr>
062: * <tr>
063: * <td>WFSResource</td>
064: * <td align="center">-</td>
065: * <td>Resource location of the capabilities of the WFS responsible for data
066: * access, default: file:///$RootDirectory$/WEB-INF/xml/wfs_capabilities.xml.
067: * </td>
068: * </tr>
069: * <tr>
070: * <td>CatalogAddresses</td>
071: * <td align="center">-</td>
072: * <td>Addresses of remote catalogs to be used to realize a cascading catalog.
073: * </td>
074: * </tr>
075: * <tr>
076: * <td>HarvestRepository</td>
077: * <td align="center">-</td>
078: * <td>Information concerning services that are harvestable.</td>
079: * </tr>
080: * </table>
081: *
082: *
083: * @author <a href="mailto:poth@lat-lon.de">Andreas Poth </a>
084: * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </a>
085: * @author last edited by: $Author: apoth $
086: *
087: * @version 2.0, $Revision: 9345 $, $Date: 2007-12-27 08:22:25 -0800 (Thu, 27 Dec 2007) $
088: *
089: * @see org.deegree.enterprise.DeegreeParams
090: *
091: * @since 2.0
092: */
093:
094: public class CatalogueDeegreeParams extends DeegreeParams {
095:
096: private static final long serialVersionUID = -2923926335089417513L;
097:
098: private SimpleLink wfsResource;
099: private OnlineResource[] catalogAddresses;
100: private JDBCConnection harvestRepository;
101: private String defaultOutputSchema = null;
102: private OnlineResource transInXslt = null;
103: private OnlineResource transOutXslt = null;
104:
105: /**
106: * Creates a new CatalogDeegreeParams instance.
107: *
108: * @param defaultOnlineResource
109: * @param cacheSize
110: * @param requestTimeLimit
111: * @param characterSet
112: * @param wfsResource
113: * @param catalogAddresses
114: * @param harvestRepository
115: */
116: public CatalogueDeegreeParams(OnlineResource defaultOnlineResource,
117: int cacheSize, int requestTimeLimit, String characterSet,
118: SimpleLink wfsResource, OnlineResource[] catalogAddresses,
119: JDBCConnection harvestRepository,
120: String defaultOutputSchema, OnlineResource trans_in_xslt,
121: OnlineResource trans_out_xslt) {
122: super (defaultOnlineResource, cacheSize, requestTimeLimit,
123: characterSet);
124: this .wfsResource = wfsResource;
125: this .catalogAddresses = catalogAddresses;
126: this .harvestRepository = harvestRepository;
127: this .defaultOutputSchema = defaultOutputSchema;
128: this .transInXslt = trans_in_xslt;
129: this .transOutXslt = trans_out_xslt;
130: }
131:
132: /**
133: * @return Returns the catalogAddresses.
134: */
135: public OnlineResource[] getCatalogAddresses() {
136: return catalogAddresses;
137: }
138:
139: /**
140: * @param catalogAddresses
141: * The catalogAddresses to set.
142: */
143: public void setCatalogAddresses(OnlineResource[] catalogAddresses) {
144: this .catalogAddresses = catalogAddresses;
145: }
146:
147: /**
148: * @return Returns the harvestRepository.
149: */
150: public JDBCConnection getHarvestRepository() {
151: return harvestRepository;
152: }
153:
154: /**
155: * @param harvestRepository
156: * The harvestRepository to set.
157: */
158: public void setHarvestRepository(JDBCConnection harvestRepository) {
159: this .harvestRepository = harvestRepository;
160: }
161:
162: /**
163: * @return Returns the wfsResource.
164: */
165: public SimpleLink getWfsResource() {
166: return wfsResource;
167: }
168:
169: /**
170: * @param wfsResource
171: * The wfsResource to set.
172: */
173: public void setWfsResource(SimpleLink wfsResource) {
174: this .wfsResource = wfsResource;
175: }
176:
177: /**
178: *
179: * @return returns the default output schema
180: */
181: public String getDefaultOutputSchema() {
182: return defaultOutputSchema;
183: }
184:
185: /**
186: * @param defaultOutputSchema default output schema
187: */
188: public void setDefaultOutputSchema(String defaultOutputSchema) {
189: this .defaultOutputSchema = defaultOutputSchema;
190: }
191:
192: public OnlineResource getTransformationInputXSLT() {
193: return transInXslt;
194: }
195:
196: public void setTransformationInputXSLT(OnlineResource xslt) {
197: this .transInXslt = xslt;
198: }
199:
200: public OnlineResource getTransformationOutputXSLT() {
201: return transOutXslt;
202: }
203:
204: public void setTransformationOutputXSLT(OnlineResource xslt) {
205: this.transOutXslt = xslt;
206: }
207: }
|