summaryrefslogtreecommitdiffstats
path: root/swext/mediawiki/src/com/sun/star/wiki/Helper.java
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-10-08 21:51:40 +0200
committerMichael Stahl <mstahl@redhat.com>2015-10-09 10:14:20 +0200
commit2ccef1c93d4c1a478fbdd8a49caf0735f68ba141 (patch)
tree3e57e6e5109b5df3b5169bf20964397e89320188 /swext/mediawiki/src/com/sun/star/wiki/Helper.java
parentswext: Wiki Publisher does not use those apache-commons libraries (diff)
downloadcore-2ccef1c93d4c1a478fbdd8a49caf0735f68ba141.tar.gz
core-2ccef1c93d4c1a478fbdd8a49caf0735f68ba141.zip
swext: add a logging out stream to help debugging TLS connections
Change-Id: Idbabae3edad5e95a37fa9834d24a72ebd13087ae
Diffstat (limited to 'swext/mediawiki/src/com/sun/star/wiki/Helper.java')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Helper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
index f5e5c4848bc8..b40b5f107d7d 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
@@ -639,6 +639,9 @@ public class Helper
((HttpsURLConnection) conn).setSSLSocketFactory(new WikiProtocolSocketFactory());
}
+// enable this to help debug connections where TLS gets in the way
+// ((HttpsURLConnection) conn).setSSLSocketFactory(new LoggingProtocolSocketFactory());
+
conn.setRequestMethod(method);
// note: don't connect yet so that the caller can do some further setup