svn-gvsig-desktop / tmp / trunk / cliente / WorkSpace_WPSClient / extWPSCallejero / src / es / logex / gvsig / wps / client / WPSProtocolHandler.java @ 26594
History | View | Annotate | Download (2.84 KB)
1 |
package es.logex.gvsig.wps.client; |
---|---|
2 |
|
3 |
import java.io.ByteArrayOutputStream; |
4 |
import java.io.File; |
5 |
import java.util.HashMap; |
6 |
import java.util.List; |
7 |
import java.util.Vector; |
8 |
|
9 |
import javax.xml.bind.JAXBException; |
10 |
|
11 |
import net.opengeospatial.wps.ows.impl1_0_0.OperationsMetadata; |
12 |
|
13 |
import org.gvsig.remoteClient.OGCProtocolHandler; |
14 |
|
15 |
/* No dependen de la versiĆ³n de wps*/
|
16 |
import org.tigris.frogs.OWSException; |
17 |
import org.tigris.frogs.ows.ServiceContactType; |
18 |
import org.tigris.frogs.ows.ServiceIdentificationType; |
19 |
import org.tigris.frogs.ows.ServiceProviderType; |
20 |
import org.tigris.frogs.ows.impl_0_3_20.BoundingBox; |
21 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.DataInputs; |
22 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.ExecuteBoundingBoxData; |
23 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.ExecuteLiteralData; |
24 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.ExecuteRequest; |
25 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.DataInputsType.ValueFormChoice; |
26 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryConnector; |
27 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryRequest; |
28 |
|
29 |
/*import org.tigris.frogs.plugin.wpsint.impl_0_4_0.ProcessDeclarationRunnable;
|
30 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryConnector;
|
31 |
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryRequest;*/
|
32 |
import org.w3c.dom.Document; |
33 |
|
34 |
public abstract class WPSProtocolHandler extends OGCProtocolHandler { |
35 |
|
36 |
protected ServiceIdentificationType serviceIdentification;
|
37 |
protected ServiceContactType serviceContact;
|
38 |
protected ServiceProviderType serviceProvider;
|
39 |
protected OperationsMetadata operationsMetadata;
|
40 |
protected ByteArrayOutputStream wpsDocument; |
41 |
|
42 |
public ServiceIdentificationType getServiceIdentification() {
|
43 |
return this.serviceIdentification; |
44 |
} |
45 |
|
46 |
public ServiceContactType getServiceContact() {
|
47 |
return this.serviceProvider.getServiceContact(); |
48 |
} |
49 |
|
50 |
public ServiceProviderType getServiceProvider() {
|
51 |
return this.serviceProvider; |
52 |
} |
53 |
|
54 |
public OperationsMetadata getOperationsMetadata() {
|
55 |
return this.operationsMetadata; |
56 |
} |
57 |
|
58 |
public ByteArrayOutputStream getWpsDocument() { |
59 |
return this.wpsDocument; |
60 |
} |
61 |
|
62 |
/**
|
63 |
* Descubre el servidor y recupera la informaciĆ³n que
|
64 |
* necesita el cliente.
|
65 |
* @return
|
66 |
* @throws Throwable
|
67 |
*/
|
68 |
public abstract void getCapabilites() throws OWSException, JAXBException, Throwable; |
69 |
|
70 |
public abstract String getVersion(); |
71 |
|
72 |
public abstract Document describeAllProcess(); |
73 |
|
74 |
public abstract Document describeProcess(String processName); |
75 |
|
76 |
public abstract Document getWSLD(); |
77 |
|
78 |
public abstract boolean executeProcess(String processName); |
79 |
|
80 |
public abstract File executeProcessGetLayer(BoundingBox bbox, String layerName, String detailLevel ); |
81 |
|
82 |
public abstract List<String> executeProcessGetCandidates(String town, String street, String number); |
83 |
|
84 |
public abstract DiscoveryConnector getDiscoveryConnector(); |
85 |
} |