Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added example for ssl support to MongoTest

  • Loading branch information...
commit 9458e7d37e6223be67bf0068f958a3a6745b1bfb 1 parent 6061a06
@marcesher authored
Showing with 7 additions and 1 deletion.
  1. +2 −0  .gitignore
  2. +1 −1  doc/build.cfm
  3. +4 −0 test/MongoTest.cfc
View
2  .gitignore
@@ -2,3 +2,5 @@
/deploy
/WEB-INF
/temp.cfm
+/.idea
+/cfmongodb.iml
View
2  doc/build.cfm
@@ -1,5 +1,5 @@
<cfscript>
-colddoc = createObject("component", "colddoc.ColdDoc").init();
+colddoc = createObject("component", "colddoc.ColdDoc").init();
strategy = createObject("component", "colddoc.strategy.api.HTMLAPIStrategy").init( expandPath("api"), "CFMongoDB" );
colddoc.setStrategy(strategy);
colddoc.generate(expandPath("/cfmongodb/core"), "cfmongodb.core");
View
4 test/MongoTest.cfc
@@ -194,6 +194,10 @@ import cfmongodb.core.*;
debug( dboDude.toString() );
}
+ private function howToDoSSL(){
+ mongo.getMongo().getMongoOptions().socketFactory = createObject("java", "javax.net.ssl.SSLSocketFactory").getDefault();
+ }
+
</cfscript>
</cfcomponent>
Please sign in to comment.
Something went wrong with that request. Please try again.