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: import java.util.List;
20:
21: /**
22: * Represents an operation used by Open Web Services for requests and responses.
23: *
24: * @author rgould
25: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/data/ows/OperationType.java $
26: */
27: public class OperationType {
28: protected List formats;
29: protected URL get;
30: protected URL post;
31:
32: /**
33: * Each format is usually a MIME type string that can be used to indicate
34: * what format the server's response should be in.
35: *
36: * @return a List of Strings, each of which usually represent a mime type
37: */
38: public List getFormats() {
39: return formats;
40: }
41:
42: public void setFormats(List formats) {
43: this .formats = formats;
44: }
45:
46: /**
47: * @return the URL where a GET request should be made
48: */
49: public URL getGet() {
50: return get;
51: }
52:
53: public void setGet(URL get) {
54: this .get = get;
55: }
56:
57: /**
58: * @return the URL where a POST request should be made
59: */
60: public URL getPost() {
61: return post;
62: }
63:
64: public void setPost(URL post) {
65: this.post = post;
66: }
67: }
|