[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/sslbisocket ...

Ron Sigal ron_sigal at yahoo.com
Tue Jan 16 04:19:15 EST 2007


  User: rsigal  
  Date: 07/01/16 04:19:15

  Modified:    src/main/org/jboss/remoting/transport/sslbisocket 
                        SSLBisocketClientInvoker.java
  Log:
  JBREM-298: Added ability to wrap SocketFactory.
  
  Revision  Changes    Path
  1.3       +10 -3     JBossRemoting/src/main/org/jboss/remoting/transport/sslbisocket/SSLBisocketClientInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SSLBisocketClientInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/sslbisocket/SSLBisocketClientInvoker.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- SSLBisocketClientInvoker.java	27 Dec 2006 05:58:39 -0000	1.2
  +++ SSLBisocketClientInvoker.java	16 Jan 2007 09:19:15 -0000	1.3
  @@ -34,6 +34,7 @@
   import org.jboss.remoting.Client;
   import org.jboss.remoting.InvokerLocator;
   import org.jboss.remoting.security.SSLSocketBuilder;
  +import org.jboss.remoting.socketfactory.SocketFactoryWrapper;
   import org.jboss.remoting.transport.bisocket.BisocketClientInvoker;
   import org.jboss.remoting.util.socket.HandshakeRepeater;
   
  @@ -77,10 +78,10 @@
      {
         SocketFactory sf = super.createSocketFactory(configuration);
   
  -      if (sf != null)
  -      {
  +      if (isCompleteSocketFactory(sf))
            return sf;
  -      }
  +      
  +      SocketFactory wrapper = sf;
   
         try
         {
  @@ -92,6 +93,12 @@
            log.error("Error creating SSL Socket Factory for client invoker.", e);
         }
   
  +      if (wrapper != null)
  +      {
  +         ((SocketFactoryWrapper) wrapper).setSocketFactory(sf);
  +         return wrapper;
  +      }
  +      
         return sf;
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list