Package org.opencms.relations
Class CmsExternalLinksValidator
java.lang.Object
org.opencms.relations.CmsExternalLinksValidator
- All Implemented Interfaces:
I_CmsScheduledJob
Class to validate pointer links.
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if the given url is valid.This method is called by the cron scheduler.void
setReport
(I_CmsReport report) Sets the report for the output.void
validateLinks
(CmsObject cms) Validate all links.
-
Constructor Details
-
CmsExternalLinksValidator
public CmsExternalLinksValidator()
-
-
Method Details
-
checkUrl
Checks if the given url is valid.- Parameters:
check
- the url to checkcms
- a OpenCms context object- Returns:
- false if the url could not be accessed
-
launch
This method is called by the cron scheduler.- Specified by:
launch
in interfaceI_CmsScheduledJob
- Parameters:
cms
- a OpenCms context objectparameters
- link check parameters- Returns:
- the String that is written to the OpenCms log
- Throws:
CmsException
- if something goes wrong- See Also:
-
setReport
Sets the report for the output.- Parameters:
report
- the report for the output
-
validateLinks
Validate all links.- Parameters:
cms
- a OpenCms context object- Throws:
CmsException
- if something goes wrong
-