public class SiteMapParser extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
static int |
MAX_BYTES_ALLOWED
Sitemap docs must be limited to 10MB (10,485,760 bytes)
|
Constructor and Description |
---|
SiteMapParser() |
SiteMapParser(boolean strict) |
Modifier and Type | Method and Description |
---|---|
boolean |
isStrict() |
AbstractSiteMap |
parseSiteMap(byte[] content,
URL url) |
AbstractSiteMap |
parseSiteMap(String contentType,
byte[] content,
AbstractSiteMap sitemap)
Returns a processed copy of an unprocessed sitemap object, i.e.
|
AbstractSiteMap |
parseSiteMap(String contentType,
byte[] content,
URL url) |
AbstractSiteMap |
parseSiteMap(URL onlineSitemapUrl)
Returns a SiteMap or SiteMapIndex given an online sitemap URL
Please note that this method is a static method which goes online and fetches the sitemap then parses it This method is a convenience method for a user who has a sitemap URL and wants a "Keep it simple" way to parse it. |
public static final org.slf4j.Logger LOG
public static int MAX_BYTES_ALLOWED
public SiteMapParser()
public SiteMapParser(boolean strict)
public boolean isStrict()
public AbstractSiteMap parseSiteMap(URL onlineSitemapUrl) throws UnknownFormatException, IOException
onlineSitemapUrl
- URL of the online sitemapUnknownFormatException
IOException
public AbstractSiteMap parseSiteMap(String contentType, byte[] content, AbstractSiteMap sitemap) throws UnknownFormatException, IOException
UnknownFormatException
IOException
public AbstractSiteMap parseSiteMap(byte[] content, URL url) throws UnknownFormatException, IOException
UnknownFormatException
IOException
public AbstractSiteMap parseSiteMap(String contentType, byte[] content, URL url) throws UnknownFormatException, IOException
UnknownFormatException
IOException
Copyright © 2015. All rights reserved.