Class SitemapParser

java.lang.Object
com.attribyte.parser.sitemap.SitemapParser

public class SitemapParser extends Object
Parse a site map.
Author:
Matt Hamer
  • Constructor Details

    • SitemapParser

      public SitemapParser()
  • Method Details

    • parse

      public static List<SitemapLink> parse(String content, String sitemapLink) throws ParseException
      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

      public static List<SitemapLink> parseSimple(String response)
      Parse a "simple" sitemap file (one URL per line).
      Parameters:
      response - The response body as a string.
      Returns:
      The list of links.