Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / RemoteClient.java @ 40559

History | View | Annotate | Download (2.81 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

    
25
package org.gvsig.remoteclient;
26

    
27
import org.gvsig.compat.net.ICancellable;
28

    
29

    
30
/**
31
 * <p></p>
32
 *
33
 */
34
public abstract class RemoteClient {
35

    
36
/**
37
 * <p>Represents ...</p>
38
 *
39
 */
40
    protected String hostName;
41

    
42
/**
43
 * <p>Represents ...</p>
44
 *
45
 */
46
    protected int port;
47

    
48
/**
49
 * <p>Represents ...</p>
50
 *
51
 */
52
    protected String serviceName;
53

    
54
/**
55
 * <p>Represents ...</p>
56
 *
57
 */
58
    private String type;
59

    
60
/**
61
 * <p>Represents ...</p>
62
 *
63
 */
64
    private String subtype;
65

    
66
/**
67
 * <p>Represents ...</p>
68
 *
69
 *
70
 * @return
71
 */
72
    public String getHost() {
73
        return hostName;
74
    }
75

    
76
/**
77
 * <p>Represents ...</p>
78
 *
79
 *
80
 * @param _hostName
81
 */
82
    public void setHost(String _hostName) {
83
        hostName = _hostName;
84
    }
85

    
86
/**
87
 * <p>Represents ...</p>
88
 *
89
 *
90
 * @return
91
 */
92
    public int getPort() {
93
        // your code here
94
        return port;
95
    }
96

    
97
/**
98
 * <p>Does ...</p>
99
 *
100
 *
101
 * @param _port
102
 */
103
    public void setPort(int _port) {
104
        port = _port;
105
    }
106

    
107
/**
108
 * <p>Does ...</p>
109
 *
110
 *
111
 * @return
112
 */
113
    public String getServiceName() {
114
        // your code here
115
        return serviceName;
116
    }
117

    
118
/**
119
 * <p>Does ...</p>
120
 *
121
 *
122
 * @param _serviceName
123
 */
124
    public void setServiceName(String _serviceName) {
125
        serviceName = _serviceName;
126
    }
127

    
128
/**
129
 * <p>Does ...</p>
130
 *
131
 */
132
    public abstract boolean connect(boolean override, ICancellable cancel);
133

    
134
/**
135
 * <p>Does ...</p>
136
 *
137
 */
138
    public abstract void close();
139

    
140
/**
141
 * <p>Represents ...</p>
142
 *
143
 *
144
 * @return
145
 */
146
    public String getType() {
147
        return type;
148
    }
149

    
150
/**
151
 * <p>Represents ...</p>
152
 *
153
 *
154
 * @param _type
155
 */
156
    public void setType(String _type) {
157
        type = _type;
158
    }
159

    
160
/**
161
 * <p>Represents ...</p>
162
 *
163
 *
164
 * @return
165
 */
166
    public String getSubtype() {
167
        return subtype;
168
    }
169

    
170
/**
171
 * <p>Represents ...</p>
172
 *
173
 *
174
 * @param _subtype
175
 */
176
    public void setSubtype(String _subtype) {
177
        subtype = _subtype;
178
    }
179
 }