org.dspace.ctask.general
Class MetadataValueLinkChecker

java.lang.Object
  extended by org.dspace.curate.AbstractCurationTask
      extended by org.dspace.ctask.general.BasicLinkChecker
          extended by org.dspace.ctask.general.MetadataValueLinkChecker
All Implemented Interfaces:
CurationTask

public class MetadataValueLinkChecker
extends BasicLinkChecker

A link checker that builds upon the BasicLinkChecker to check URLs that appear in all metadata fields where the field starts with http:// or https:// Of course thi assumes that there is no extra metadata following the URL.

Author:
Stuart Lewis

Field Summary
 
Fields inherited from class org.dspace.curate.AbstractCurationTask
curator, taskId
 
Constructor Summary
MetadataValueLinkChecker()
           
 
Method Summary
protected  List<String> getURLs(Item item)
          Get the URLs to check
 
Methods inherited from class org.dspace.ctask.general.BasicLinkChecker
checkURL, getResponseStatus, perform
 
Methods inherited from class org.dspace.curate.AbstractCurationTask
dereference, distribute, init, perform, performItem, performObject, report, setResult, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataValueLinkChecker

public MetadataValueLinkChecker()
Method Detail

getURLs

protected List<String> getURLs(Item item)
Description copied from class: BasicLinkChecker
Get the URLs to check

Overrides:
getURLs in class BasicLinkChecker
Parameters:
item - The item to extract URLs from
Returns:
An array of URL Strings


Copyright © 2012 DuraSpace. All Rights Reserved.