camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1343043 - /camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
Date Sun, 27 May 2012 13:14:54 GMT
Author: davsclaus
Date: Sun May 27 13:14:53 2012
New Revision: 1343043

URL: http://svn.apache.org/viewvc?rev=1343043&view=rev
Log:
Some system out about SSL to help troubleshoot issue with JDK7 on ubuntu

Modified:
    camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java

Modified: camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java?rev=1343043&r1=1343042&r2=1343043&view=diff
==============================================================================
--- camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
(original)
+++ camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
Sun May 27 13:14:53 2012
@@ -18,6 +18,8 @@ package org.apache.camel.component.ahc;
 
 import java.net.URI;
 
+import javax.net.ssl.SSLContext;
+
 import com.ning.http.client.AsyncHttpClient;
 import com.ning.http.client.AsyncHttpClientConfig;
 import org.apache.camel.Consumer;
@@ -161,7 +163,13 @@ public class AhcEndpoint extends Default
                 AsyncHttpClientConfig.Builder builder = AhcComponent.cloneConfig(clientConfig);
                 
                 if (sslContextParameters != null) {
-                    builder.setSSLContext(sslContextParameters.createSSLContext());
+
+                    // TODO: Remove us, but part of investigation issue on Java7 on ubuntu
+                    System.out.println(sslContextParameters);
+                    SSLContext ssl = sslContextParameters.createSSLContext();
+                    System.out.println(ssl);
+
+                    builder.setSSLContext(ssl);
                 }
                 
                 config = builder.build();
@@ -169,8 +177,14 @@ public class AhcEndpoint extends Default
                 if (sslContextParameters != null) {
                     AsyncHttpClientConfig.Builder builder =
                         new AsyncHttpClientConfig.Builder();
-                    
-                    builder.setSSLContext(sslContextParameters.createSSLContext());
+
+                    // TODO: Remove us, but part of investigation issue on Java7 on ubuntu
+                    System.out.println(sslContextParameters);
+
+                    SSLContext ssl = sslContextParameters.createSSLContext();
+                    System.out.println(ssl);
+
+                    builder.setSSLContext(ssl);
                     config = builder.build();
                 }
             }



Mime
View raw message