Permalink
Browse files

added example for ssl support to MongoTest

  • Loading branch information...
marcesher committed Aug 10, 2012
1 parent 6061a06 commit 9458e7d37e6223be67bf0068f958a3a6745b1bfb
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,3 +2,5 @@
/deploy
/WEB-INF
/temp.cfm
+/.idea
+/cfmongodb.iml
View
@@ -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
@@ -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>

0 comments on commit 9458e7d

Please sign in to comment.