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