Package io.wcm.siteapi.handler.link
Class SiteApiLinkMarkupBuilder
- java.lang.Object
-
- io.wcm.siteapi.handler.link.SiteApiLinkMarkupBuilder
-
- All Implemented Interfaces:
io.wcm.handler.link.spi.LinkMarkupBuilder
@ProviderType @Model(adaptables={org.apache.sling.api.SlingHttpServletRequest.class,org.apache.sling.api.resource.Resource.class}, adapters=io.wcm.handler.link.spi.LinkMarkupBuilder.class) public final class SiteApiLinkMarkupBuilder extends java.lang.Object implements io.wcm.handler.link.spi.LinkMarkupBuilder
Link markup builder that kicks in when a Site API request is served: Instad of the standard anchor tag serialization, an anchor with the URL generated with custom attributes based on the link decoration provided byLinkDecorator
implementation.
-
-
Constructor Summary
Constructors Constructor Description SiteApiLinkMarkupBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(@NotNull io.wcm.handler.link.Link link)
@Nullable io.wcm.handler.commons.dom.Anchor
build(@NotNull io.wcm.handler.link.Link link)
-
-
-
Method Detail
-
accepts
public boolean accepts(@NotNull @NotNull io.wcm.handler.link.Link link)
- Specified by:
accepts
in interfaceio.wcm.handler.link.spi.LinkMarkupBuilder
-
build
@Nullable public @Nullable io.wcm.handler.commons.dom.Anchor build(@NotNull @NotNull io.wcm.handler.link.Link link)
- Specified by:
build
in interfaceio.wcm.handler.link.spi.LinkMarkupBuilder
-
-