org.codehaus.xsite.validators
Class LinkChecker

java.lang.Object
  extended by org.codehaus.xsite.validators.LinkChecker

public class LinkChecker
extends Object

Verifies all the links in a Sitemap.

Author:
Joe Walnes, Jörg Schaible

Nested Class Summary
static interface LinkChecker.Reporter
          Callback for errors.
 
Constructor Summary
LinkChecker(Sitemap sitemap, LinkValidator[] validators, LinkChecker.Reporter reporter)
           
 
Method Summary
 boolean verify()
          Verifies all the links in the site.
protected  boolean verifyLinkHref(String href)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkChecker

public LinkChecker(Sitemap sitemap,
                   LinkValidator[] validators,
                   LinkChecker.Reporter reporter)
Method Detail

verify

public boolean verify()
Verifies all the links in the site. Returns true if all links are valid.

Returns:

verifyLinkHref

protected boolean verifyLinkHref(String href)


Copyright © 2011. All Rights Reserved.