Hi,

I've built a first version of a LinkStatusGenerator. It looks like the
crawler that's allready in Cocoon (I re-used some code and the configuration
options).
It crawles a cocoon website using the LinkSerializer, tries to reach the
pages that are found and output the HTTP result code and message.

Things that are probably not finished are:
- Make use of source/sourceresolver instead of URLConnection. I needed the
getResultCode and getResultMessage however that are not in the source
interface.
- Configuration options. Check which configuration options should be kept
and which should be removed.
- Use the HTMLGenerator to check sites that are not built using Cocoon. (the
LinkStatusGenerator uses the cocoon-view=links construction to get all links
from a page).
- Create a sample that is able to check any site.

I'd be happy to donate the code to Cocoon.

Michael Homeijer

 <<LinkStatusGenerator.java>> 

Attachment: LinkStatusGenerator.java
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to