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

Ron Sigal ron_sigal at yahoo.com
Tue Jan 16 03:20:33 EST 2007


  User: rsigal  
  Date: 07/01/16 03:20:33

  Modified:    src/main/org/jboss/remoting/transport/http/ssl 
                        HTTPSClientInvoker.java
  Log:
  JBREM-298: Added ability to wrap SocketFactory.
  
  Revision  Changes    Path
  1.14      +11 -4     JBossRemoting/src/main/org/jboss/remoting/transport/http/ssl/HTTPSClientInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HTTPSClientInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/http/ssl/HTTPSClientInvoker.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- HTTPSClientInvoker.java	12 Jan 2007 18:56:23 -0000	1.13
  +++ HTTPSClientInvoker.java	16 Jan 2007 08:20:33 -0000	1.14
  @@ -28,6 +28,7 @@
   import org.jboss.remoting.security.SSLSocketBuilder;
   import org.jboss.remoting.security.SSLSocketBuilderMBean;
   import org.jboss.remoting.serialization.ClassLoaderUtility;
  +import org.jboss.remoting.socketfactory.SocketFactoryWrapper;
   import org.jboss.remoting.transport.http.HTTPClientInvoker;
   
   import javax.net.SocketFactory;
  @@ -127,10 +128,10 @@
      {
         SocketFactory sf = super.createSocketFactory(configuration);
   
  -      if (sf != null)
  -      {
  +      if (isCompleteSocketFactory(sf))
            return sf;
  -      }
  +      
  +      SocketFactory wrapper = sf;
   
         try
         {
  @@ -143,6 +144,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