svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / ogc / OGCClientOperation.java @ 40769
History | View | Annotate | Download (2.1 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program 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
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
|
25 |
package org.gvsig.remoteclient.ogc; |
26 |
|
27 |
import java.util.Hashtable; |
28 |
|
29 |
public abstract class OGCClientOperation { |
30 |
public static final int PROTOCOL_UNDEFINED = -1; |
31 |
public static final int PROTOCOL_GET = 0; |
32 |
public static final int PROTOCOL_POST = 1; |
33 |
protected String operationName; |
34 |
protected String onlineResource; |
35 |
|
36 |
public OGCClientOperation(String operationName) { |
37 |
super();
|
38 |
this.operationName = operationName;
|
39 |
} |
40 |
|
41 |
public OGCClientOperation(String operationName, String onlineResource) { |
42 |
this.onlineResource = onlineResource;
|
43 |
this.operationName = operationName;
|
44 |
} |
45 |
|
46 |
public abstract Hashtable getOperations(); |
47 |
|
48 |
/**
|
49 |
* @return Returns the onlineResource.
|
50 |
*/
|
51 |
public String getOnlineResource() { |
52 |
return onlineResource;
|
53 |
} |
54 |
/**
|
55 |
* @param onlineResource The onlineResource to set.
|
56 |
*/
|
57 |
public void setOnlineResource(String onlineResource) { |
58 |
this.onlineResource = onlineResource;
|
59 |
} |
60 |
|
61 |
/**
|
62 |
* @return Returns the operationName.
|
63 |
*/
|
64 |
public String getOperationName() { |
65 |
return operationName;
|
66 |
} |
67 |
|
68 |
/**
|
69 |
* @param operationName The operationName to set.
|
70 |
*/
|
71 |
public void setOperationName(String operationName) { |
72 |
this.operationName = operationName;
|
73 |
} |
74 |
} |
75 |
|
76 |
|
77 |
|