* Do not rely on Java classes to implement IPathElement.

Implement all necessary features such as href() and getChildElement()
  ourselves instead.
* Add missing classes to class.properties.
* Display actual line numbers in function source macro.
This commit is contained in:
hns 2006-11-20 11:05:24 +00:00
parent c9463fe57a
commit 694139d897
6 changed files with 47 additions and 26 deletions

View file

@ -7,14 +7,6 @@ function constructor(name) {
this.name = name;
}
/**
* of no use, just to avoid error message
*/
function onRequest() {
}
/**
* return true/false to determine if application is running
*/
@ -25,4 +17,19 @@ function isActive() {
return true;
}
/**
* Method used by Helma for URL composition.
*/
function href(action) {
var base = root.href() + this.name + "/";
return action ? base + action : base;
}
/**
* Method used by Helma request path resolution.
*/
function getChildElement(name) {
if (name == "api")
return this.getDoc();
return null;
}