KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > html > web > RegisterSSLProctocol


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 /**
6  * Description of the Class
7  *
8  *@author Tlili Khaled
9  */

10 public class RegisterSSLProctocol {
11     private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(RegisterSSLProctocol.class);
12
13
14     /**
15      * Description of the Method
16      */

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     /**
24      * Description of the Method
25      */

26     public static void unregisterSSLProtocol() {
27         logger.debug("[ UnRegister SSL Protocol ]");
28         Protocol.unregisterProtocol("https");
29     }
30
31 }
32
Popular Tags