/**
  * @desc build a new UrlDispatcherItem
  * @param string $classpath the controller classname
  * @param string $capture_regex the regular expression matching the url
  * and capturing the controller method parameters. By default, match the empty url <code>/</code>
  * @param string $parameters_names the names of the parameters in the capture order
  * @throws NoSuchControllerException
  */
 public function __construct($classname, $capture_regex = '`^/?$`', $parameters_names = array())
 {
     $this->classname =& $classname;
     $this->parameters_names = $parameters_names;
     parent::__construct($capture_regex);
 }
 /**
  * @desc build a new UrlDispatcherItem
  * @param string $redirect_url the url on which the redirection will be done
  * @param string $capture_regex the regular expression matching the url
  * and capturing the controller method parameters. By default, match the empty url <code>/</code>
  * @throws NoSuchControllerException
  */
 public function __construct($redirect_url, $capture_regex = '`^/?$`')
 {
     $this->redirect_url = $redirect_url;
     parent::__construct($capture_regex);
 }