1 package org.jahia.clipbuilder.html.web; 2 import org.apache.commons.httpclient.contrib.ssl.*; 3 import org.org.apache.commons.httpclient.protocol.*; 4 5 10 public class RegisterSSLProctocol { 11 private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(RegisterSSLProctocol.class); 12 13 14 17 public static void registerSSLProtocol() { 18 logger.debug("[ Register SSL Protocol ]"); 19 Protocol.registerProtocol("https", new Protocol("https", new EasySSLProtocolSocketFactory(), 443)); 20 } 21 22 23 26 public static void unregisterSSLProtocol() { 27 logger.debug("[ UnRegister SSL Protocol ]"); 28 Protocol.unregisterProtocol("https"); 29 } 30 31 } 32 | Popular Tags |