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 individualPages from all sitemaps andshouldFollow(Page)to stop the traversal at a givenPage. However, both methods only complement the default behaviour.Pages that are unpublished, protected, redirect or marked not to be indexed by search engines, will remain excluded from all sitemaps.If there are multiple
SitemapPageFilterservices registered, the one with the highest service ranking will be used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanshouldFollow(Page page)Implementations may returnfalseto exclude the given subtree from all sitemaps.booleanshouldInclude(Page page)Implementations may returnfalseto exclude the givenPagefrom all sitemaps.
-