diff src/org/tn5250j/framework/transport/SocketConnector.java @ 91:33eb63352be5

remove 5250 configuration
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 16:17:48 -0700
parents b29b39f386a4
children 77ac18bc1b2f
line wrap: on
line diff
--- a/src/org/tn5250j/framework/transport/SocketConnector.java	Mon Jun 16 12:34:05 2014 -0700
+++ b/src/org/tn5250j/framework/transport/SocketConnector.java	Mon Jun 16 16:17:48 2014 -0700
@@ -35,7 +35,6 @@
 
 public class SocketConnector {
     private static final String TAG = "SocketConnector";
-  String sslType = null;
 
   /**
    * Creates a new instance that creates a plain socket by default.
@@ -45,25 +44,13 @@
   }
 
   /**
-   * Set the type of SSL connection to use.  Specify null or an empty string
-   * to use a plain socket.
-   * @param type The SSL connection type
-   * @see org.tn5250j.framework.transport.SSLConstants
-   */
-  public void setSSLType(String type) {
-    sslType = type;
-  }
-
-  /**
-   * Create a new client Socket to the given destination and port.  If an SSL
-   * socket type has not been specified <i>(by setSSLType(String))</i>, then
-   * a plain socket will be created.  Otherwise, a new SSL socket of the
-   * specified type will be created.
+   * Create a new client Socket to the given destination, port and sslType of
+   * encryption.
    * @param destination
    * @param port
    * @return a new client socket, or null if
    */
-  public Socket createSocket(String destination, int port, TerminalBridge bridge, TerminalManager manager) {
+  public Socket createSocket(String destination, int port, String sslType, String homeDirectory, TerminalBridge bridge, TerminalManager manager) {
 
   	Socket socket = null;
   	Exception ex = null;
@@ -91,7 +78,7 @@
 		}
 
       	if (sslIf != null) {
-      		sslIf.init(sslType);
+      		sslIf.init(sslType, homeDirectory);
       		socket = sslIf.createSSLSocket(destination, port);
       	}
       }