You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2019/08/27 22:51:35 UTC

svn commit: r1866014 - /manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java

Author: kwright
Date: Tue Aug 27 22:51:35 2019
New Revision: 1866014

URL: http://svn.apache.org/viewvc?rev=1866014&view=rev
Log:
Add support for SSL

Modified:
    manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java

Modified: manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java?rev=1866014&r1=1866013&r2=1866014&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java (original)
+++ manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java Tue Aug 27 22:51:35 2019
@@ -151,14 +151,16 @@ public class CswsSession
     // Build configuration for conduit
     final HttpConduitConfig config = new HttpConduitConfig();
     config.setTlsClientParameters(tlsConfig);
+    final HttpConduitFeature conduitFeature = new HttpConduitFeature();
+    conduitFeature.setConduitConfig(config);
     
     // Construct service references from the URLs
     try {
-      this.authService = new Authentication_Service(new URL(authenticationServiceURL));
-      this.documentManagementService = new DocumentManagement_Service(new URL(documentManagementServiceURL));
-      this.contentServiceService = new ContentService_Service(new URL(contentServiceServiceURL));
-      this.memberServiceService = new MemberService_Service(new URL(memberServiceServiceURL));
-      this.searchServiceService = new SearchService_Service(new URL(searchServiceServiceURL));
+      this.authService = new Authentication_Service(new URL(authenticationServiceURL), conduitFeature);
+      this.documentManagementService = new DocumentManagement_Service(new URL(documentManagementServiceURL), conduitFeature);
+      this.contentServiceService = new ContentService_Service(new URL(contentServiceServiceURL), conduitFeature);
+      this.memberServiceService = new MemberService_Service(new URL(memberServiceServiceURL), conduitFeature);
+      this.searchServiceService = new SearchService_Service(new URL(searchServiceServiceURL), conduitFeature);
     } catch (javax.xml.ws.WebServiceException e) {
       throw new ManifoldCFException("Error initializing web services: "+e.getMessage(), e);
     } catch (MalformedURLException e) {