org.apache.maven.doxia.linkcheck.validation
Class MailtoLinkValidator

java.lang.Object
  extended by org.apache.maven.doxia.linkcheck.validation.MailtoLinkValidator
All Implemented Interfaces:
LinkValidator

public final class MailtoLinkValidator
extends Object
implements LinkValidator

Validates mailto links.

Version:
$Id: MailtoLinkValidator.java 799838 2009-08-01 11:23:24Z vsiveton $
Author:
Ben Walding, Arnaud Heritier

Constructor Summary
MailtoLinkValidator()
           
 
Method Summary
 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 getResourceKey(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

MailtoLinkValidator

public MailtoLinkValidator()
Method Detail

validateLink

public LinkValidationResult validateLink(LinkValidationItem lvi)
If getResourceKey(lvi) returned null, this will NOT be called.

Specified by:
validateLink in interface LinkValidator
Parameters:
lvi - The LinkValidationItem to validate.
Returns:
The LinkValidationResult.

getResourceKey

public Object getResourceKey(LinkValidationItem lvi)
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 - The LinkValidationItem to validate.
Returns:
Object null if this validator should not be doing this work.


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.