Statistics
| Revision:

root / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / RemoteClient.java @ 7946

History | View | Annotate | Download (1.98 KB)

1

    
2
package org.gvsig.remoteClient;
3

    
4
import org.gvsig.remoteClient.wms.ICancellable;
5

    
6
/**
7
 * <p></p>
8
 * 
9
 */
10
public abstract class RemoteClient {
11

    
12
/**
13
 * <p>Represents ...</p>
14
 * 
15
 */
16
    protected String hostName;
17

    
18
/**
19
 * <p>Represents ...</p>
20
 * 
21
 */
22
    protected int port;
23

    
24
/**
25
 * <p>Represents ...</p>
26
 * 
27
 */
28
    protected String serviceName;
29

    
30
/**
31
 * <p>Represents ...</p>
32
 * 
33
 */
34
    private String type;
35

    
36
/**
37
 * <p>Represents ...</p>
38
 * 
39
 */
40
    private String subtype;
41

    
42
/**
43
 * <p>Represents ...</p>
44
 * 
45
 * 
46
 * @return 
47
 */
48
    public String getHost() {        
49
        return hostName;
50
    } 
51

    
52
/**
53
 * <p>Represents ...</p>
54
 * 
55
 * 
56
 * @param _hostName 
57
 */
58
    public void setHost(String _hostName) {        
59
        hostName = _hostName;
60
    } 
61

    
62
/**
63
 * <p>Represents ...</p>
64
 * 
65
 * 
66
 * @return 
67
 */
68
    public int getPort() {        
69
        // your code here
70
        return port;
71
    } 
72

    
73
/**
74
 * <p>Does ...</p>
75
 * 
76
 * 
77
 * @param _port 
78
 */
79
    public void setPort(int _port) {        
80
        port = _port;
81
    } 
82

    
83
/**
84
 * <p>Does ...</p>
85
 * 
86
 * 
87
 * @return 
88
 */
89
    public String getServiceName() {        
90
        // your code here
91
        return serviceName;
92
    } 
93

    
94
/**
95
 * <p>Does ...</p>
96
 * 
97
 * 
98
 * @param _serviceName 
99
 */
100
    public void setServiceName(String _serviceName) {        
101
        serviceName = _serviceName;
102
    } 
103

    
104
/**
105
 * <p>Does ...</p>
106
 * 
107
 */
108
    public abstract boolean connect(ICancellable cancel);
109

    
110
/**
111
 * <p>Does ...</p>
112
 * 
113
 */
114
    public abstract void close();
115

    
116
/**
117
 * <p>Represents ...</p>
118
 * 
119
 * 
120
 * @return 
121
 */
122
    public String getType() {        
123
        return type;
124
    } 
125

    
126
/**
127
 * <p>Represents ...</p>
128
 * 
129
 * 
130
 * @param _type 
131
 */
132
    public void setType(String _type) {        
133
        type = _type;
134
    } 
135

    
136
/**
137
 * <p>Represents ...</p>
138
 * 
139
 * 
140
 * @return 
141
 */
142
    public String getSubtype() {        
143
        return subtype;
144
    } 
145

    
146
/**
147
 * <p>Represents ...</p>
148
 * 
149
 * 
150
 * @param _subtype 
151
 */
152
    public void setSubtype(String _subtype) {        
153
        subtype = _subtype;
154
    } 
155
 }