Class CmsXmlSitemapGenerator.ResultEntry

java.lang.Object
org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator.ResultEntry
Enclosing class:
CmsXmlSitemapGenerator

A bean that consists of a sitemap URL bean and a priority score, to determine which of multiple entries with the same URL are to be preferred.

  • Constructor Details

    • ResultEntry

      public ResultEntry(CmsXmlSitemapUrlBean urlBean, int priority)
      Creates a new result entry.

      Parameters:
      urlBean - the url bean
      priority - the internal priority
  • Method Details

    • getPriority

      public int getPriority()
      Gets the internal priority used to determine which of multiple entries with the same URL to use.

      This has nothing to do with the priority defined in the URL beans themselves!

      Returns:
      the internal priority
    • getUrlBean

      Gets the URL bean.

      Returns:
      the URL bean