Class 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 by LinkDecorator implementation.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SiteApiLinkMarkupBuilder

        public SiteApiLinkMarkupBuilder()
    • Method Detail

      • 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