Statistics
| Revision:

svn-gvsig-desktop / tmp / trunk / cliente / WorkSpace_WPSClient / extWPSCallejero / src / es / logex / gvsig / wps / client / WPSProtocolHandler.java @ 26601

History | View | Annotate | Download (2.38 KB)

1
package es.logex.gvsig.wps.client;
2

    
3
import java.io.ByteArrayOutputStream;
4
import java.io.File;
5
import java.util.List;
6
import javax.xml.bind.JAXBException;
7

    
8
import net.opengeospatial.wps.ows.impl1_0_0.OperationsMetadata;
9

    
10
import org.gvsig.remoteClient.OGCProtocolHandler;
11

    
12
/* No dependen de la versiĆ³n de wps*/
13
import org.tigris.frogs.OWSException;
14
import org.tigris.frogs.ows.ServiceContactType;
15
import org.tigris.frogs.ows.ServiceIdentificationType;
16
import org.tigris.frogs.ows.ServiceProviderType;
17
import org.tigris.frogs.ows.impl_0_3_20.BoundingBox;
18
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryConnector;
19

    
20

    
21
/*import org.tigris.frogs.plugin.wpsint.impl_0_4_0.ProcessDeclarationRunnable;
22
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryConnector;
23
import org.tigris.frogs.plugin.wpsint.impl_0_4_0.client.DiscoveryRequest;*/
24
import org.w3c.dom.Document;
25

    
26
public abstract class WPSProtocolHandler extends OGCProtocolHandler  {
27
        
28
        protected ServiceIdentificationType serviceIdentification;
29
        protected ServiceContactType serviceContact;
30
        protected ServiceProviderType serviceProvider;
31
        protected OperationsMetadata operationsMetadata;
32
        protected ByteArrayOutputStream wpsDocument;        
33
                
34
        public ServiceIdentificationType getServiceIdentification() {
35
                return this.serviceIdentification;
36
        }
37
        
38
        public ServiceContactType getServiceContact() {
39
                return this.serviceProvider.getServiceContact();
40
        }
41
        
42
        public ServiceProviderType getServiceProvider() {
43
                return this.serviceProvider;
44
        }
45
        
46
        public OperationsMetadata getOperationsMetadata() {
47
                return this.operationsMetadata;
48
        }
49
        
50
        public ByteArrayOutputStream getWpsDocument() {
51
                return this.wpsDocument;
52
        }
53
                
54
        /**
55
         * Descubre el servidor y recupera la informaciĆ³n que 
56
         * necesita el cliente.
57
         * @return
58
         * @throws Throwable 
59
         */
60
        public abstract void getCapabilites() throws OWSException, JAXBException, Throwable;
61
        
62
        public abstract String getVersion();
63
        
64
        public abstract Document describeAllProcess();
65
        
66
        public abstract Document describeProcess(String processName);
67
        
68
        public abstract Document getWSLD();
69
        
70
        public abstract boolean executeProcess(String processName);
71
        
72
        public abstract File executeProcessGetLayer(BoundingBox bbox, String layerName, String detailLevel );
73
        
74
        public abstract List<String> executeProcessGetCandidates(String town, String street, String number);
75
        
76
        public abstract DiscoveryConnector getDiscoveryConnector();
77
}