This class searches a tree in a WebDAV repository for broken links. It does
so by executing a DASL that finds documents that have property
links in namespace http://hippo.nl/cms/1.0
defined. The result of the check is stored in a document in the repository
with the following structure:
<broken-links date="...">
<page url="...">
<link url="...">[error message]</link>
</page>
</broken-links>
The error message can be a simple text, or an element with namespace
http://apache.org/cocoon/i18n/2.1 and name text
which contains a localization key.
If a link exists in multiple documents it is checked only once.
Checking links is a time-consuming task. It does not require a lot of
resources though. That is why the checking of links is performed using
multiple threads.
NOTE: this class assumes that the result document will be written to the
WebDAV repository that is checked for broken links. Therefore only one set of
credentials have to be given.
|