public function set($str)
	{
		if ($str instanceof Path) {
			$this->path->set($str->get());
		} else if ($str instanceof UrlPath) {
			$this->path->set($str->get());
		} else if (is_string($str)) {
			$this->path->set($str);
		} else {
			throw new \InvalidArgumentException('Unexpected type.');
		}
	}