public interface LinkChecker
LinkChecker
interface defines method needed for link checking
of internal and external urls.Modifier and Type | Method and Description |
---|---|
LinkCheckerSettings |
createSettings(SlingHttpServletRequest request)
Returns the settings that are used for the given request.
|
Link |
getLink(java.lang.String href,
LinkCheckerSettings settings)
This method checks if the passed url is a valid internal or external link.
|
LinkValidity |
getLinkValidity(java.lang.String url,
LinkCheckerSettings settings)
Deprecated.
since 5.3 - use
getLink(java.lang.String, com.day.cq.rewriter.linkchecker.LinkCheckerSettings) instead. |
boolean |
isSpecial(java.lang.String url)
Checks if the given url is a special link, i.e.
|
@Deprecated LinkValidity getLinkValidity(java.lang.String url, LinkCheckerSettings settings)
getLink(java.lang.String, com.day.cq.rewriter.linkchecker.LinkCheckerSettings)
instead.url
- url to validatesettings
- linkchecker settings. see LinkCheckerSettings
Link getLink(java.lang.String href, LinkCheckerSettings settings)
href
- url to validatesettings
- linkchecker settings. see LinkCheckerSettings
LinkCheckerSettings createSettings(SlingHttpServletRequest request)
request
- the sling requestboolean isSpecial(java.lang.String url)
url
- url to checktrue
if special"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"