Revision 9048 branches/v10/libraries/libRemoteServices/src/org/gvsig/remoteClient/RemoteClient.java

View differences:

RemoteClient.java
5 5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Also available in: Unified diff