- From: Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
- Date: Fri, 28 Nov 1997 08:34:14 +0100
- To: "Jigsaw Mailinglist" <www-jigsaw@w3.org>
I do not claim that I completely understand the Jigsaw Resource Management,
but I think found something which could cause my problem.
In FileResource.java I found the method:
/**
* Is that resource still wrapping an existing file ?
* If the underlying file has disappeared <string> and if</strong> the
* container directory is extensible, remove the resource.
*/
public synchronized boolean verify() {
File file = getFile();
if ( ! file.exists() ) {
// Is the parent extensible:
HTTPResource p = getParent() ;
while ((p != null) && ! (p instanceof DirectoryResource) )
p = p.getParent() ;
if ( p == null )
return false;
DirectoryResource d = (DirectoryResource) p;
if ( ! d.getExtensibleFlag() )
return false;
// Emit an error message, and delete the resource:
String msg = file+": deleted, removing the FileResource.";
getServer().errlog(this, msg);
delete();
return false;
} else {
return true;
}
}
This piece of code looks to me like if the file does not exists this methos
returns false; if the files exists it returns true.
Now this class is subclassed by PostableResource.java, which overwrites this
method.
/**
* The verify method of a postable resource will always return <strong>
* false</strong>.
* Any PostableResource has to be removed manually.
* @return Always <strong>false</strong>.
*/
public boolean verify() {
return false;
}
But this method returns always false, which means the file/resource does not
exist. Is this correct???
Can this cause the problem, that my PostableResource will be removed by
Jigsaw every 3-4 days showing this line in errlog:
iaik.jigsaw.resources.RegMailPasswordResource@/JavaSecurity/Register:
C:\Development\Jigsaw\Jigsaw\WWW\JavaSecurity\Register: deleted, removing
the FileResource.
Wolfgang
--
Dipl.-Ing. Wolfgang Platzer
Technische Universitaet Graz - University of Technology Graz
Institut f|r Angewandte Informationsverarbeitung
und Kommunikationstechnologien
Klosterwiesgasse 32/I, A-8010 Graz,
Tel: ++43 316 873-5527,Fax: ++43 316 873-5520
URL <http://www.iaik.tu-graz.ac.at/index.html>
Received on Friday, 28 November 1997 04:55:42 UTC