@Model(adaptables={org.apache.sling.api.SlingHttpServletRequest.class,org.apache.sling.api.resource.Resource.class})
@ProviderType
public final class InternalLinkResolver
extends Object
InternalLinkType, but it can be used by custom link type implementations as
well.
The link resolving process can be customized by providing a customized InternalLinkResolverOptions object.
| Constructor and Description |
|---|
InternalLinkResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptPage(com.day.cq.wcm.api.Page page,
InternalLinkResolverOptions options)
Check if a given page is valid and acceptable to link upon.
|
Link |
resolveLink(Link link,
InternalLinkResolverOptions options)
Resolves a link and stores the result in the link object.
|
public boolean acceptPage(com.day.cq.wcm.api.Page page,
InternalLinkResolverOptions options)
page - Pageoptions - Optionspublic Link resolveLink(Link link, InternalLinkResolverOptions options)
link - Linkoptions - Options to influence the link resolution processCopyright © 2014–2017 wcm.io. All rights reserved.