Package org.codehaus.xsite.validators
Class LinkChecker
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static interfaceLinkChecker.ReporterCallback for errors.
-
Constructor Summary
Constructors Constructor Description LinkChecker(Sitemap sitemap, LinkValidator[] validators, LinkChecker.Reporter reporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverify()Verifies all the links in the site.protected booleanverifyLinkHref(String href)
-
-
-
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.
-
verifyLinkHref
protected boolean verifyLinkHref(String href)
-
-