public function getProtocol()
 {
     if (self::$protocol === null) {
         self::$protocol = 'HTTP';
         if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
             self::$protocol = 'HTTPS';
         }
     }
     return self::$protocol;
 }