01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.data.ows;
17:
18: import java.net.URL;
19:
20: /**
21: * Each Open Web Service typically defines an operation that describes what
22: * operations it supports and what data it holds. The document describing this
23: * information is usually called the Capabilities document, and is usually
24: * accessed using the GetCapabilities operation.
25: *
26: * This class provides a basic building block for clients to implement their
27: * GetCapabilitiesRequest. It automatically sets the REQUEST parameter to
28: * "GetCapabilities".
29: *
30: * @author rgould
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/data/ows/AbstractGetCapabilitiesRequest.java $
32: */
33: public abstract class AbstractGetCapabilitiesRequest extends
34: AbstractRequest implements GetCapabilitiesRequest {
35: /** Represents the SERVICE parameter */
36: public static final String SERVICE = "SERVICE"; //$NON-NLS-1$
37:
38: public AbstractGetCapabilitiesRequest(URL serverURL) {
39: super (serverURL, null);
40: }
41:
42: /**
43: * Sets the REQUEST parameter
44: * <p>
45: * Subclass can override if needed.
46: * </p>
47: */
48: protected void initRequest() {
49: setProperty(REQUEST, "GetCapabilities"); //$NON-NLS-1$
50: }
51: }
|