diff 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
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/tnvt.java	Thu May 22 19:00:59 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/tnvt.java	Tue Jun 03 10:27:54 2014 -0700
@@ -213,15 +213,12 @@
 		return hostname;
 	}
 
-
 	public void setSSLType(String type) {
 		sslType = type;
 	}
 
 	public void setDeviceName(String name) {
-
 		devName = name;
-
 	}
 
 	public String getDeviceName() {
@@ -233,7 +230,6 @@
 	}
 
 	public boolean isConnected() {
-
 		return connected;
 	}
 
@@ -269,23 +265,22 @@
 
 	public final boolean connect(String hostname, int port) {
 
-		// We will now see if there are any bypass signon parameters to be
-		//    processed. The system properties override these parameters so
-		//    have precidence if specified.
-		Properties props = controller.getConnectionProperties();
-		if (user == null && props.containsKey("SESSION_CONNECT_USER")) {
-			user = props.getProperty("SESSION_CONNECT_USER");
-			log.info(" user -> " + user + " " + controller.getSessionName());
-			if (props.containsKey("SESSION_CONNECT_PASSWORD"))
-				password = props.getProperty("SESSION_CONNECT_PASSWORD");
-			if (props.containsKey("SESSION_CONNECT_LIBRARY"))
-				library = props.getProperty("SESSION_CONNECT_LIBRARY");
-			if (props.containsKey("SESSION_CONNECT_MENU"))
-				initialMenu = props.getProperty("SESSION_CONNECT_MENU");
-			if (props.containsKey("SESSION_CONNECT_PROGRAM"))
-				program = props.getProperty("SESSION_CONNECT_PROGRAM");
-		}
-
+		//// We will now see if there are any bypass signon parameters to be
+		////    processed. The system properties override these parameters so
+		////    have precidence if specified.
+		//Properties props = controller.getConnectionProperties();
+		//if (user == null && props.containsKey("SESSION_CONNECT_USER")) {
+		//	user = props.getProperty("SESSION_CONNECT_USER");
+		//	log.info(" user -> " + user + " " + controller.getSessionName());
+		//	if (props.containsKey("SESSION_CONNECT_PASSWORD"))
+		//		password = props.getProperty("SESSION_CONNECT_PASSWORD");
+		//	if (props.containsKey("SESSION_CONNECT_LIBRARY"))
+		//		library = props.getProperty("SESSION_CONNECT_LIBRARY");
+		//	if (props.containsKey("SESSION_CONNECT_MENU"))
+		//		initialMenu = props.getProperty("SESSION_CONNECT_MENU");
+		//	if (props.containsKey("SESSION_CONNECT_PROGRAM"))
+		//		program = props.getProperty("SESSION_CONNECT_PROGRAM");
+		//}
 
 		try {
 			this.hostname = hostname;