public class BasicLinkChecker extends AbstractCurationTask
communityService, configurationService, curator, handleService, itemService, taskId| Constructor and Description |
|---|
BasicLinkChecker() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkURL(String url,
StringBuilder results)
Check the URL and perform appropriate reporting
|
protected String |
getItemHandle(Item item)
Internal utitity method to get a description of the handle
|
protected int |
getResponseStatus(String url)
Get the response code for a URL.
|
protected List<String> |
getURLs(Item item)
Get the URLs to check
|
int |
perform(DSpaceObject dso)
Perform the link checking.
|
dereference, distribute, init, perform, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskPropertypublic int perform(DSpaceObject dso) throws IOException
perform in interface CurationTaskperform in class AbstractCurationTaskdso - The DSpaaceObject to be checkedIOException - THrown if something went wrongprotected List<String> getURLs(Item item)
item - The item to extract URLs fromprotected boolean checkURL(String url, StringBuilder results)
url - The URL to checkprotected int getResponseStatus(String url)
url - The url to openCopyright © 2017 DuraSpace. All rights reserved.