Package com.attribyte.parser.sitemap
Class SitemapParser
java.lang.Object
com.attribyte.parser.sitemap.SitemapParser
Parse a site map.
- Author:
- Matt Hamer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SitemapLink> Parse a sitemap.static List<SitemapLink> parseSimple(String response) Parse a "simple" sitemap file (one URL per line).
-
Constructor Details
-
SitemapParser
public SitemapParser()
-
-
Method Details
-
parse
Parse a sitemap.- Parameters:
content- The content as a string.sitemapLink- The link to the content, if any.- Returns:
- A list of links.
- Throws:
ParseException- on invalid date/time.
-
parseSimple
Parse a "simple" sitemap file (one URL per line).- Parameters:
response- The response body as a string.- Returns:
- The list of links.
-