W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1996

Unpickling ATTR_URL

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Tue, 3 Dec 1996 10:26:13 +0100 (MET)
Message-Id: <199612030926.KAA08397@www43.inria.fr>
To: Joel.Crisp@bristol.ac.uk
Cc: www-jigsaw@w3.org
Joel Crisp writes:
 > 
 > Hi
 > 
 > I've noticed that ATTR_URL is a computed attribute, however I've yet to
 > actually track down where it is computed... Is it a obsolete attribute ?

No it's not.

 > If not, presumably I have to overload the unpickleInstance method to
 > re-calculate it from the parent's URL and my identifier - does this have
 > to be done for any resource using it (ATTR_URL that is) ?

ContainerResource are reponsible for providing to their children (at
init time), their URL, eg in the DirectoryResource, the code looks
like:

DirectoryResource:createDefaultResource(..) {
...
	Hashtable defs = new Hashtable(10) ;
	defs.put("parent", this);
	defs.put("resource-store", children) ;
	defs.put("server", getServer()) ;
	defs.put("url", getURL() + name);  // HERE !
...
}

Anselm
Received on Tuesday, 3 December 1996 04:26:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT