tn5250j/src/org/tn5250j Session5250.java,1.5,1.6 My5250App.java,1.20,1.21

Steve Kennedy <[email protected]> Fri, 25 Feb 2005 21:41:28 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22197/src/org/tn5250j

Modified Files:
	Session5250.java My5250App.java 
Log Message:
Bugfix for Bug Request ID 1071962

Index: Session5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Session5250.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Session5250.java	2 Aug 2004 17:33:16 -0000	1.5
--- Session5250.java	25 Feb 2005 21:41:25 -0000	1.6
***************
*** 43,47 ****
     private Vector listeners;
     private SessionChangeEvent sce;
!    private String sslType;
     private boolean heartBeat;
     String propFileName;
--- 43,47 ----
     private Vector listeners;
     private SessionChangeEvent sce;
!    //private String sslType;
     private boolean heartBeat;
     String propFileName;
***************
*** 156,159 ****
--- 156,161 ----
  
        final tnvt vt = new tnvt(this,screen,enhanced,support132);
+       if (sesProps.containsKey(TN5250jConstants.SSL_TYPE))
+       	vt.setSSLType(sesProps.getProperty(TN5250jConstants.SSL_TYPE));
        setVT(vt);
  
***************
*** 167,176 ****
                       proxyPort);
  
!       if (sesProps.containsKey(org.tn5250j.framework.transport.SSLConstants.SSL_TYPE)) {
!          sslType = (String)sesProps.getProperty(org.tn5250j.framework.transport.SSLConstants.SSL_TYPE);
        }
        else {
           // set default to none
!          sslType = org.tn5250j.framework.transport.SSLConstants.SSL_TYPE_NONE;
        }
  
--- 169,179 ----
                       proxyPort);
  
!       String sslType = null;
!       if (sesProps.containsKey(TN5250jConstants.SSL_TYPE)) {
!          sslType = (String)sesProps.getProperty(TN5250jConstants.SSL_TYPE);
        }
        else {
           // set default to none
!          sslType = TN5250jConstants.SSL_TYPE_NONE;
        }
  

Index: My5250App.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/My5250App.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** My5250App.java	10 Nov 2004 11:39:40 -0000	1.20
--- My5250App.java	25 Feb 2005 21:41:25 -0000	1.21
***************
*** 9,12 ****
--- 9,13 ----
  import org.tn5250j.gui.TN5250jSecurityAccessDialog;
  import org.tn5250j.framework.common.*;
+ import org.tn5250j.framework.transport.SSLConstants;
  
  public class My5250App extends JApplet implements TN5250jConstants {
***************
*** 100,103 ****
--- 101,108 ----
           sesProps.put(SESSION_DEVICE_NAME ,getParameter("-dn"));
  
+       if (isSpecified("-sslType"))
+       	sesProps.put(TN5250jConstants.SSL_TYPE,getParameter("-sslType"));
+       
+       
        loadSystemProperty("SESSION_CONNECT_USER");
        loadSystemProperty("SESSION_CONNECT_PASSWORD");



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click