org.apache.maven.plugin.linkcheck.validation
Class FileLinkValidator

java.lang.Object
  extended byorg.apache.maven.plugin.linkcheck.validation.FileLinkValidator
All Implemented Interfaces:
LinkValidator

public final class FileLinkValidator
extends Object
implements LinkValidator

A link validator solely for files on the local filesystem.

Version:
$Id: FileLinkValidator.java 532339 2007-04-25 12:28:56Z ltheussl $
Author:
Ben Walding, Arnaud Heritier

Constructor Summary
FileLinkValidator()
           
 
Method Summary
protected  File getFile(LinkValidationItem lvi)
           
 Object getResourceKey(LinkValidationItem lvi)
          The resource key is used by the cache to determine if it really needs to validate the link.
 LinkValidationResult validateLink(LinkValidationItem lvi)
          If getResource(lvi) returned null, this will NOT be called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLinkValidator

public FileLinkValidator()
Method Detail

validateLink

public LinkValidationResult validateLink(LinkValidationItem lvi)
Description copied from interface: LinkValidator
If getResource(lvi) returned null, this will NOT be called.

Specified by:
validateLink in interface LinkValidator
Parameters:
lvi -
Returns:
int
See Also:
org.apache.maven.plugin.linkcheck.LinkValidator#validateLink(org.apache.maven.plugin.linkcheck.LinkValidationItem)

getResourceKey

public Object getResourceKey(LinkValidationItem lvi)
Description copied from interface: LinkValidator
The resource key is used by the cache to determine if it really needs to validate the link. No actual validation should be done at this point.

Specified by:
getResourceKey in interface LinkValidator
Parameters:
lvi -
Returns:
Object null if this validator should not be doing this work.
See Also:
org.apache.maven.plugin.linkcheck.LinkValidator#getResourceKey(org.apache.maven.plugin.linkcheck.LinkValidationItem)

getFile

protected File getFile(LinkValidationItem lvi)
Parameters:
lvi -
Returns:
File


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.