Interface SitemapLinkExternalizer

  • All Known Subinterfaces:
    SitemapLinkExternalizer

    @ConsumerType
    public interface SitemapLinkExternalizer
    Consumers may implement this interface to override the default externalisation behaviour.
    • Method Detail

      • externalize

        @Nullable
        @Nullable java.lang.String externalize​(SlingHttpServletRequest request,
                                               java.lang.String path)
        Implementations must return an absolute url for the given path in the context of the given request.
        Parameters:
        request -
        path -
        Returns:
        an absolute url
      • externalize

        @Nullable
        @Nullable java.lang.String externalize​(Resource resource)
        Implementations must return an absolute url for the given resource.
        Parameters:
        resource -
        Returns:
        an absolute url