@ProviderType
public interface LinkHandler
The interface is implemented by a Sling Model. You can adapt from
SlingHttpServletRequest or Resource to get a
context-specific handler instance.
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_LINK
Special link used to notify invalid links.
|
| Modifier and Type | Method and Description |
|---|---|
LinkBuilder |
get(LinkRequest linkRequest)
Build link for the given request holding all further request properties.
|
LinkBuilder |
get(com.day.cq.wcm.api.Page page)
Build internal link referencing the given content page.
|
LinkBuilder |
get(org.apache.sling.api.resource.Resource resource)
Build link which is referenced in the resource (containing properties e.g. pointing to internal or external link).
|
static final String INVALID_LINK
LinkBuilder get(org.apache.sling.api.resource.Resource resource)
resource - Resource containing properties that define the link targetLinkBuilder get(com.day.cq.wcm.api.Page page)
page - Target content pageLinkBuilder get(LinkRequest linkRequest)
linkRequest - Link handling requestCopyright © 2014–2017 wcm.io. All rights reserved.