public class BasicLinkChecker extends AbstractCurationTask
curator, taskId| Constructor and Description |
|---|
BasicLinkChecker() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkURL(java.lang.String url,
java.lang.StringBuilder results)
Check the URL and perform appropriate reporting
|
protected int |
getResponseStatus(java.lang.String url)
Get the response code for a URL.
|
protected java.util.List<java.lang.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, taskBooleanProperty, taskIntProperty, taskLongProperty, taskPropertypublic int perform(DSpaceObject dso) throws java.io.IOException
perform in interface CurationTaskperform in class AbstractCurationTaskdso - The DSpaaceObject to be checkedjava.io.IOException - THrown if something went wrongprotected java.util.List<java.lang.String> getURLs(Item item)
item - The item to extract URLs fromprotected boolean checkURL(java.lang.String url,
java.lang.StringBuilder results)
url - The URL to checkprotected int getResponseStatus(java.lang.String url)
url - The url to openCopyright © 2013 DuraSpace. All Rights Reserved.