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 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 by LinkDecorator implementation.
  • Constructor Details

    • SiteApiLinkMarkupBuilder

      public SiteApiLinkMarkupBuilder()
  • Method Details

    • accepts

      public boolean accepts(@NotNull @NotNull io.wcm.handler.link.Link link)
      Specified by:
      accepts in interface io.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 interface io.wcm.handler.link.spi.LinkMarkupBuilder