Package org.opencms.site.xmlsitemap
Class CmsXmlSitemapGenerator.ResultEntry
- java.lang.Object
-
- org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator.ResultEntry
-
- Enclosing class:
- CmsXmlSitemapGenerator
protected class CmsXmlSitemapGenerator.ResultEntry extends java.lang.Object
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 Summary
Constructors Constructor Description ResultEntry(CmsXmlSitemapUrlBean urlBean, int priority)
Creates a new result entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
Gets the internal priority used to determine which of multiple entries with the same URL to use.CmsXmlSitemapUrlBean
getUrlBean()
Gets the URL bean.
-
-
-
Constructor Detail
-
ResultEntry
public ResultEntry(CmsXmlSitemapUrlBean urlBean, int priority)
Creates a new result entry.- Parameters:
urlBean
- the url beanpriority
- the internal priority
-
-
Method Detail
-
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
public CmsXmlSitemapUrlBean getUrlBean()
Gets the URL bean.- Returns:
- the URL bean
-
-