public class SiteMapIndex extends AbstractSiteMap
AbstractSiteMap.SitemapType
TIME_ZONE_UTC, url, W3C_FULLDATE_FORMATTER, W3C_FULLDATE_FORMATTER_UTC, W3C_SHORTDATE_FORMATTER
Constructor and Description |
---|
SiteMapIndex() |
SiteMapIndex(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
addSitemap(AbstractSiteMap sitemap)
Add this Sitemap to the list of Sitemaps,
|
AbstractSiteMap |
getSitemap(URL url)
Returns the Sitemap that has the given URL.
|
Collection<AbstractSiteMap> |
getSitemaps() |
Collection<AbstractSiteMap> |
getSitemaps(boolean deduplicate) |
boolean |
hasUnprocessedSitemap() |
boolean |
isIndex() |
AbstractSiteMap |
nextUnprocessedSitemap() |
String |
toString() |
convertToDate, convertToZonedDateTime, getLastModified, getType, getUrl, isProcessed, normalizeRSSTimestamp, parseRSSTimestamp, setLastModified, setLastModified, setLastModified, setProcessed, setType
public SiteMapIndex()
public SiteMapIndex(URL url)
public Collection<AbstractSiteMap> getSitemaps()
public Collection<AbstractSiteMap> getSitemaps(boolean deduplicate)
deduplicate
- deduplicate sitemaps by URL: from two or more sitemaps
pointing to the same URL only the first is kept in the
returned collectionpublic void addSitemap(AbstractSiteMap sitemap)
sitemap
- - Sitemap to be added to the list of Sitemapspublic AbstractSiteMap getSitemap(URL url)
url
- - The Sitemap's URLpublic boolean hasUnprocessedSitemap()
public AbstractSiteMap nextUnprocessedSitemap()
public boolean isIndex()
isIndex
in class AbstractSiteMap
Copyright © 2009–2021 Crawler-Commons. All rights reserved.