Revision 2048 trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/services/RemoteService.java
RemoteService.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package com.iver.cit.gvsig.fmap.services; |
5 | 5 |
|
6 |
import java.io.IOException; |
|
7 |
|
|
8 |
import es.uji.lsi.wcs.client.ServerOutOfOrderException; |
|
9 |
|
|
6 | 10 |
/** |
7 | 11 |
* @author luisw |
8 | 12 |
*/ |
9 |
public class RemoteService { |
|
10 |
private String serviceName; |
|
11 |
private String host; |
|
12 |
private int port; |
|
13 |
|
|
14 |
public RemoteService(String name, String host, int port) { |
|
15 |
serviceName = name; |
|
16 |
this.host = host; |
|
17 |
this.port = port; |
|
18 |
} |
|
19 |
public String getName() { |
|
20 |
return serviceName; |
|
21 |
} |
|
22 |
public String getHost() { |
|
23 |
return host; |
|
24 |
} |
|
25 |
public int getPort() { |
|
26 |
return port; |
|
27 |
} |
|
13 |
public interface RemoteService { |
|
14 |
// private String serviceName; |
|
15 |
// private String host; |
|
16 |
// private int port; |
|
17 |
// |
|
18 |
// public RemoteService(String name, String host, int port){ |
|
19 |
// serviceName = name; |
|
20 |
// this.host = host; |
|
21 |
// this.port = port; |
|
22 |
// } |
|
23 |
public void setServiceName(String serviceName); |
|
24 |
public String getServiceName(); //{ |
|
25 |
// return serviceName; |
|
26 |
// } |
|
27 |
public void setHost(String hostName); //{ |
|
28 |
public String getHost(); //{ |
|
29 |
// return host; |
|
30 |
// } |
|
31 |
public void setPort(int portNr); //{ |
|
32 |
public int getPort(); //{ |
|
33 |
// return port; |
|
34 |
// } |
|
35 |
public void connect() throws IOException, ServerOutOfOrderException; |
|
36 |
public boolean isConnected(); |
|
37 |
public void close(); |
|
28 | 38 |
} |
Also available in: Unified diff