Statistics
| Revision:

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

History | View | Annotate | Download (1.88 KB)

1 3323 ldiaz
2
package org.gvsig.remoteClient;
3
4 5409 jaume
import org.gvsig.remoteClient.wms.ICancellable;
5
6 3323 ldiaz
/**
7
 * <p></p>
8 9003 jaume
 *
9 3323 ldiaz
 */
10
public abstract class RemoteClient {
11
12
/**
13
 * <p>Represents ...</p>
14 9003 jaume
 *
15 3323 ldiaz
 */
16
    protected String hostName;
17
18
/**
19
 * <p>Represents ...</p>
20 9003 jaume
 *
21 3323 ldiaz
 */
22
    protected int port;
23
24
/**
25
 * <p>Represents ...</p>
26 9003 jaume
 *
27 3323 ldiaz
 */
28
    protected String serviceName;
29
30
/**
31
 * <p>Represents ...</p>
32 9003 jaume
 *
33 3323 ldiaz
 */
34
    private String type;
35
36
/**
37
 * <p>Represents ...</p>
38 9003 jaume
 *
39 3323 ldiaz
 */
40
    private String subtype;
41
42
/**
43
 * <p>Represents ...</p>
44 9003 jaume
 *
45
 *
46
 * @return
47 3323 ldiaz
 */
48 9003 jaume
    public String getHost() {
49 3323 ldiaz
        return hostName;
50 9003 jaume
    }
51 3323 ldiaz
52
/**
53
 * <p>Represents ...</p>
54 9003 jaume
 *
55
 *
56
 * @param _hostName
57 3323 ldiaz
 */
58 9003 jaume
    public void setHost(String _hostName) {
59 3323 ldiaz
        hostName = _hostName;
60 9003 jaume
    }
61 3323 ldiaz
62
/**
63
 * <p>Represents ...</p>
64 9003 jaume
 *
65
 *
66
 * @return
67 3323 ldiaz
 */
68 9003 jaume
    public int getPort() {
69 3323 ldiaz
        // your code here
70
        return port;
71 9003 jaume
    }
72 3323 ldiaz
73
/**
74
 * <p>Does ...</p>
75 9003 jaume
 *
76
 *
77
 * @param _port
78 3323 ldiaz
 */
79 9003 jaume
    public void setPort(int _port) {
80 3323 ldiaz
        port = _port;
81 9003 jaume
    }
82 3323 ldiaz
83
/**
84
 * <p>Does ...</p>
85 9003 jaume
 *
86
 *
87
 * @return
88 3323 ldiaz
 */
89 9003 jaume
    public String getServiceName() {
90 3323 ldiaz
        // your code here
91
        return serviceName;
92 9003 jaume
    }
93 3323 ldiaz
94
/**
95
 * <p>Does ...</p>
96 9003 jaume
 *
97
 *
98
 * @param _serviceName
99 3323 ldiaz
 */
100 9003 jaume
    public void setServiceName(String _serviceName) {
101 3323 ldiaz
        serviceName = _serviceName;
102 9003 jaume
    }
103 3323 ldiaz
104
/**
105
 * <p>Does ...</p>
106 9003 jaume
 *
107 3323 ldiaz
 */
108 9003 jaume
    public abstract boolean connect(boolean override, ICancellable cancel);
109 3323 ldiaz
110
/**
111
 * <p>Does ...</p>
112 9003 jaume
 *
113 3323 ldiaz
 */
114
    public abstract void close();
115
116
/**
117
 * <p>Represents ...</p>
118 9003 jaume
 *
119
 *
120
 * @return
121 3323 ldiaz
 */
122 9003 jaume
    public String getType() {
123 3323 ldiaz
        return type;
124 9003 jaume
    }
125 3323 ldiaz
126
/**
127
 * <p>Represents ...</p>
128 9003 jaume
 *
129
 *
130
 * @param _type
131 3323 ldiaz
 */
132 9003 jaume
    public void setType(String _type) {
133 3323 ldiaz
        type = _type;
134 9003 jaume
    }
135 3323 ldiaz
136
/**
137
 * <p>Represents ...</p>
138 9003 jaume
 *
139
 *
140
 * @return
141 3323 ldiaz
 */
142 9003 jaume
    public String getSubtype() {
143 3323 ldiaz
        return subtype;
144 9003 jaume
    }
145 3323 ldiaz
146
/**
147
 * <p>Represents ...</p>
148 9003 jaume
 *
149
 *
150
 * @param _subtype
151 3323 ldiaz
 */
152 9003 jaume
    public void setSubtype(String _subtype) {
153 3323 ldiaz
        subtype = _subtype;
154 9003 jaume
    }
155 3323 ldiaz
 }