Exemplo n.º 1
0
 function removeFilter($name)
 {
     $config =& HessianConfig::globalConfig();
     $config->removeFilter($name);
 }
Exemplo n.º 2
0
 function HessianProtocolHandler($stream = null)
 {
     if ($stream) {
         $this->setStream($stream);
     }
     // Recover default configuration data
     $config =& HessianConfig::globalConfig();
     $this->setTypeMap($config->typeMap);
     $this->setDateProvider($config->dateProvider);
 }
Exemplo n.º 3
0
 /**
  * Returns the exact case sesitive name of a registered remote method
  *
  * @param string method case insensitive name of the method
  * @return string case sensitive name of the method
  * @access public
  **/
 function resolveMethod($method)
 {
     $checkMethod = strtolower($method);
     // ugly
     $config =& HessianConfig::globalConfig();
     if (isset($config->remoteMethods[$this->url][$checkMethod])) {
         return $config->remoteMethods[$this->url][$checkMethod];
     }
     if (isset($this->remoteMethods[$checkMethod])) {
         return $this->remoteMethods[$checkMethod];
     }
     return $method;
 }