[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/http/ssl ...
Ron Sigal
ron_sigal at yahoo.com
Tue Jan 16 00:55:36 EST 2007
User: rsigal
Date: 07/01/16 00:55:36
Modified: src/main/org/jboss/remoting/transport/http/ssl Tag:
remoting_2_x HTTPSClientInvoker.java
Log:
JBREM-298: Added ability to wrap SocketFactory.
Revision Changes Path
No revision
No revision
1.11.4.2 +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.11.4.1
retrieving revision 1.11.4.2
diff -u -b -r1.11.4.1 -r1.11.4.2
--- HTTPSClientInvoker.java 11 Jan 2007 20:34:50 -0000 1.11.4.1
+++ HTTPSClientInvoker.java 16 Jan 2007 05:55:36 -0000 1.11.4.2
@@ -26,6 +26,7 @@
import org.jboss.remoting.InvokerLocator;
import org.jboss.remoting.serialization.ClassLoaderUtility;
import org.jboss.remoting.security.SSLSocketBuilder;
+import org.jboss.remoting.socketfactory.SocketFactoryWrapper;
import org.jboss.remoting.transport.http.HTTPClientInvoker;
import javax.net.SocketFactory;
@@ -125,10 +126,10 @@
{
SocketFactory sf = super.createSocketFactory(configuration);
- if (sf != null)
- {
+ if (isCompleteSocketFactory(sf))
return sf;
- }
+
+ SocketFactory wrapper = sf;
try
{
@@ -141,6 +142,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