Interface SitemapLinkExternalizer
- All Known Subinterfaces:
SitemapLinkExternalizer
Consumers may implement this interface to override the default externalisation behaviour.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SitemapLinkExternalizerA default implementation of theSitemapLinkExternalizerwhich may be used as fallback. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringexternalize(Resource resource) Implementations must return an absolute url for the given resource.@Nullable Stringexternalize(SlingHttpServletRequest request, String path) Implementations must return an absolute url for the given path in the context of the given request.
-
Field Details
-
DEFAULT
A default implementation of theSitemapLinkExternalizerwhich may be used as fallback.
-
-
Method Details
-
externalize
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
Implementations must return an absolute url for the given resource.- Parameters:
resource-- Returns:
- an absolute url
-