Package com.adobe.aem.wcm.seo.sitemap
Interface SitemapPageFilter
-
@ConsumerType public interface SitemapPageFilter
This interface is filter that can be implemented by consumers to exclude certain pages from a sitemap.shouldInclude(Page)
can be used to exclude individualPage
s from all sitemaps andshouldFollow(Page)
to stop the traversal at a givenPage
. However, both methods only complement the default behaviour.Page
s that are unpublished, protected, redirect or marked not to be indexed by search engines, will remain excluded from all sitemaps.If there are multiple
SitemapPageFilter
services registered, the one with the highest service ranking will be used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldFollow(Page page)
Implementations may returnfalse
to exclude the given subtree from all sitemaps.boolean
shouldInclude(Page page)
Implementations may returnfalse
to exclude the givenPage
from all sitemaps.
-