Package org.apache.sling.sitemap
Interface SitemapInfo
An info object with details about a sitemap/sitemap-index.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of urls in the sitemap.@NotNull StringgetName()Returns the name of the sitemap.intgetSize()Returns the size of the sitemap in bytes.@NotNull SitemapInfo.StatusReturns the status of the sitemap.@Nullable StringReturns the resource path to the resource the sitemap is stored at.@NotNull StringgetUrl()Returns the absolute, external url for the sitemap/sitemap-index.
-
Method Details
-
getStoragePath
Returns the resource path to the resource the sitemap is stored at. May return null if the sitemap or sitemap-index is served on-demand.- Returns:
-
getUrl
Returns the absolute, external url for the sitemap/sitemap-index.- Returns:
-
getName
Returns the name of the sitemap.For sitemap-indexes this will be equal to
SitemapService.SITEMAP_INDEX_NAMEand for sitemaps generated for the default name this will be equal toSitemapService.DEFAULT_SITEMAP_NAME.- Returns:
-
getStatus
Returns the status of the sitemap.- Returns:
- See Also:
-
getSize
int getSize()Returns the size of the sitemap in bytes. -1 for sitemap-index or sitemaps served on-demand.- Returns:
-
getEntries
int getEntries()Returns the number of urls in the sitemap. -1 for sitemap-index or sitemaps served on-demand.- Returns:
-