Interface SitemapLinkExternalizer

    • Method Detail

      • externalize

        @NotNull
        @NotNull 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.
        Specified by:
        externalize in interface SitemapLinkExternalizer
        Returns:
        an absolute url
      • externalize

        @NotNull
        @NotNull java.lang.String externalize​(Resource resource)
        Implementations must return an absolute url for the given resource.
        Specified by:
        externalize in interface SitemapLinkExternalizer
        Returns:
        an absolute url
      • externalize

        @NotNull
        @NotNull java.lang.String externalize​(ResourceResolver resourceResolver,
                                              java.lang.String path)
        Returns an absolute url for the given path. This path may include an extension, suffix or query string.
        Parameters:
        resourceResolver -
        path -
        Returns:
        the absolute url
        Throws:
        java.lang.IllegalArgumentException - is thrown then the given string is not a path