svn-gvsig-desktop / trunk / extensions / extWCS / src4 / es / uji / lsi / wcs / client / OperationGetCapabilities.java @ 1963
History | View | Annotate | Download (1020 Bytes)
1 |
package es.uji.lsi.wcs.client; |
---|---|
2 |
/*
|
3 |
* OperationGetCapabilities.java
|
4 |
*
|
5 |
* Created on 18 de enero de 2005, 14:15
|
6 |
*/
|
7 |
import java.util.*; |
8 |
/**
|
9 |
*
|
10 |
* @author jaume
|
11 |
*/
|
12 |
public class OperationGetCapabilities extends Operation{ |
13 |
private Hashtable parameters; |
14 |
/** Creates a new instance of OperationGetCapabilities */
|
15 |
public OperationGetCapabilities() {
|
16 |
parameters = new Hashtable(); |
17 |
initParams(); |
18 |
} |
19 |
|
20 |
private void initParams(){ |
21 |
parameters.put("service", "WCS"); |
22 |
parameters.put("request", "GetCapabilities"); |
23 |
parameters.put("version", "1.0.0"); |
24 |
} |
25 |
|
26 |
public void setParam(String param_name, String value) throws Exception{ |
27 |
super.setParam(super.GET_CAPABILITIES, param_name, value, parameters); |
28 |
} |
29 |
|
30 |
public String getParamsString(){ |
31 |
try {
|
32 |
return super.getParamsString(parameters); |
33 |
} catch (Exception e){ |
34 |
new Error("Failed to build GetCapabilities param string."); |
35 |
return null; |
36 |
} |
37 |
} |
38 |
} |