@ConsumerType public abstract class LinkType extends Object
LinkHandler.
This interface has to be implemented by a Sling Model class. The adaptables
should be SlingHttpServletRequest and Resource.
| Constructor and Description |
|---|
LinkType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(LinkRequest linkRequest)
Checks whether a link reference can be handled by this link type
|
abstract boolean |
accepts(String linkRef)
Checks whether a link reference string can be handled by this link type
|
abstract String |
getId() |
abstract String |
getPrimaryLinkRefProperty() |
abstract Link |
resolveLink(Link link)
Resolves a link
|
public abstract String getId()
public abstract String getPrimaryLinkRefProperty()
public boolean accepts(LinkRequest linkRequest)
linkRequest - Link referencepublic abstract boolean accepts(String linkRef)
linkRef - Link reference stringCopyright © 2014–2017 wcm.io. All rights reserved.