Interface SitemapLinkExternalizer

All Superinterfaces:
SitemapLinkExternalizer

@ConsumerType public interface SitemapLinkExternalizer extends SitemapLinkExternalizer
This service interface is an extension of the SitemapLinkExternalizer that provides an additional method to externalize any path in the same way SitemapLinkExternalizer.externalize(org.apache.sling.api.resource.Resource) works.
  • Method Details

    • externalize

      @NotNull @NotNull String externalize(SlingHttpServletRequest request, 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
      Parameters:
      request -
      path -
      Returns:
      an absolute url
    • externalize

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

      @NotNull @NotNull String externalize(ResourceResolver resourceResolver, 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:
      IllegalArgumentException - is thrown then the given string is not a path