Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libRemoteServices / src / org / gvsig / remoteclient / RemoteClient.java @ 38531

History | View | Annotate | Download (1.87 KB)

1

    
2
package org.gvsig.remoteclient;
3

    
4
import org.gvsig.compat.net.ICancellable;
5

    
6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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