comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 20:69a407d33146 tn5250

adding tn5250 files
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2014 10:27:54 -0700
parents b39bcf616a6f
children cfcb8d9859a8
comparison
equal deleted inserted replaced
14:51f34b9de232 20:69a407d33146
211 public String getHostName() { 211 public String getHostName() {
212 212
213 return hostname; 213 return hostname;
214 } 214 }
215 215
216
217 public void setSSLType(String type) { 216 public void setSSLType(String type) {
218 sslType = type; 217 sslType = type;
219 } 218 }
220 219
221 public void setDeviceName(String name) { 220 public void setDeviceName(String name) {
222
223 devName = name; 221 devName = name;
224
225 } 222 }
226 223
227 public String getDeviceName() { 224 public String getDeviceName() {
228 return devName; 225 return devName;
229 } 226 }
231 public String getAllocatedDeviceName() { 228 public String getAllocatedDeviceName() {
232 return devNameUsed; 229 return devNameUsed;
233 } 230 }
234 231
235 public boolean isConnected() { 232 public boolean isConnected() {
236
237 return connected; 233 return connected;
238 } 234 }
239 235
240 /** 236 /**
241 * @return true when SSL is used and socket is connected. 237 * @return true when SSL is used and socket is connected.
267 } 263 }
268 264
269 265
270 public final boolean connect(String hostname, int port) { 266 public final boolean connect(String hostname, int port) {
271 267
272 // We will now see if there are any bypass signon parameters to be 268 //// We will now see if there are any bypass signon parameters to be
273 // processed. The system properties override these parameters so 269 //// processed. The system properties override these parameters so
274 // have precidence if specified. 270 //// have precidence if specified.
275 Properties props = controller.getConnectionProperties(); 271 //Properties props = controller.getConnectionProperties();
276 if (user == null && props.containsKey("SESSION_CONNECT_USER")) { 272 //if (user == null && props.containsKey("SESSION_CONNECT_USER")) {
277 user = props.getProperty("SESSION_CONNECT_USER"); 273 // user = props.getProperty("SESSION_CONNECT_USER");
278 log.info(" user -> " + user + " " + controller.getSessionName()); 274 // log.info(" user -> " + user + " " + controller.getSessionName());
279 if (props.containsKey("SESSION_CONNECT_PASSWORD")) 275 // if (props.containsKey("SESSION_CONNECT_PASSWORD"))
280 password = props.getProperty("SESSION_CONNECT_PASSWORD"); 276 // password = props.getProperty("SESSION_CONNECT_PASSWORD");
281 if (props.containsKey("SESSION_CONNECT_LIBRARY")) 277 // if (props.containsKey("SESSION_CONNECT_LIBRARY"))
282 library = props.getProperty("SESSION_CONNECT_LIBRARY"); 278 // library = props.getProperty("SESSION_CONNECT_LIBRARY");
283 if (props.containsKey("SESSION_CONNECT_MENU")) 279 // if (props.containsKey("SESSION_CONNECT_MENU"))
284 initialMenu = props.getProperty("SESSION_CONNECT_MENU"); 280 // initialMenu = props.getProperty("SESSION_CONNECT_MENU");
285 if (props.containsKey("SESSION_CONNECT_PROGRAM")) 281 // if (props.containsKey("SESSION_CONNECT_PROGRAM"))
286 program = props.getProperty("SESSION_CONNECT_PROGRAM"); 282 // program = props.getProperty("SESSION_CONNECT_PROGRAM");
287 } 283 //}
288
289 284
290 try { 285 try {
291 this.hostname = hostname; 286 this.hostname = hostname;
292 this.port = port; 287 this.port = port;
293 288