Interface SitemapLinkExternalizer
- All Superinterfaces:
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.-
Field Summary
Fields inherited from interface org.apache.sling.sitemap.spi.common.SitemapLinkExternalizer
DEFAULT -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringexternalize(Resource resource) Implementations must return an absolute url for the given resource.@NotNull Stringexternalize(ResourceResolver resourceResolver, String path) Returns an absolute url for the given path.@NotNull Stringexternalize(SlingHttpServletRequest request, String path) Implementations must return an absolute url for the given path in the context of the given request.
-
Method Details
-
externalize
Implementations must return an absolute url for the given path in the context of the given request.- Specified by:
externalizein interfaceSitemapLinkExternalizer- Parameters:
request-path-- Returns:
- an absolute url
-
externalize
Implementations must return an absolute url for the given resource.- Specified by:
externalizein interfaceSitemapLinkExternalizer- Parameters:
resource-- Returns:
- an absolute url
-
externalize
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
-