Package org.dspace.ctask.general
Class MetadataValueLinkChecker
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.general.BasicLinkChecker
-
- 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 this assumes that there is no extra metadata following the URL.- Author:
- Stuart Lewis
-
-
Field Summary
-
Fields inherited from class org.dspace.curate.AbstractCurationTask
communityService, configurationService, curator, handleService, itemService, taskId
-
-
Constructor Summary
Constructors Constructor Description MetadataValueLinkChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>getURLs(Item item)Get the URLs to check-
Methods inherited from class org.dspace.ctask.general.BasicLinkChecker
checkURL, getItemHandle, getResponseStatus, perform
-
Methods inherited from class org.dspace.curate.AbstractCurationTask
dereference, distribute, init, perform, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
-
-
-
-
Method Detail
-
getURLs
protected List<String> getURLs(Item item)
Description copied from class:BasicLinkCheckerGet the URLs to check- Overrides:
getURLsin classBasicLinkChecker- Parameters:
item- The item to extract URLs from- Returns:
- An array of URL Strings
-
-