Class ResourceTreeSitemapGenerator

  • All Implemented Interfaces:
    SitemapGenerator

    @ConsumerType
    public abstract class ResourceTreeSitemapGenerator
    extends java.lang.Object
    implements SitemapGenerator
    A default implementation of SitemapGenerator that traverses a resource tree.

    Implementations may change the traversal behaviour by overriding shouldFollow(Resource) or shouldInclude(Resource) but it is recommended to always consider the default implementation. The default implementation includes only Resources that have a "jcr:content" child and follows through only on content that is not below the "jcr:content" or any other sitemap root.

    This implementation keeps track of the traversal's state in the SitemapGenerator.Context. It is capable to continue from a previous persisted state, when the generation got aborted.

    • Constructor Detail

      • ResourceTreeSitemapGenerator

        public ResourceTreeSitemapGenerator()