protected function processKeyedHeader($headerKey, $headerValue) { parent::processKeyedHeader($headerKey, $headerValue); if ($headerKey == self::HEADER_KEY_COOKIE) { $this->processCookieHeader($headerValue); } else { if ($headerKey == self::HEADER_KEY_HOST) { $this->url->setHost($headerValue); } else { if ($headerKey == self::HEADER_KEY_USER_AGENT) { $this->userAgent = $headerValue; } else { if ($headerKey == self::HEADER_KEY_AUTHORIZATION) { $authorizationName = strtolower(trim(substr($headerValue, 0, strpos($headerValue, ' ')))); if (isset(self::$authorizations[$authorizationName])) { $className = self::$authorizations[$authorizationName]; Customweb_Core_Util_Class::loadLibraryClassByName($className); $object = new $className(); if (!$object instanceof Customweb_Core_Http_IAuthorization) { throw new Exception("The given authorization class does not implement the authorization interface."); } $object->parseHeaderFieldValue($headerValue); $this->authorization = $object; } } } } } }