Class SitemapIndexGenerator.Options

  • Enclosing class:
    SitemapIndexGenerator


    public static class SitemapIndexGenerator.Options
    extends Object
    Options to configure sitemap index generation
    • Constructor Detail

      • Options

        public Options(URL baseUrl,
                       File outFile)
        Configures the generator with a base URL and destination to write the sitemap index file.
        Parameters:
        baseUrl - All URLs in the generated sitemap(s) should appear under this base URL
        outFile - The sitemap index will be written out at this location
      • Options

        public Options(String baseUrl,
                       File outFile)
                throws MalformedURLException
        Configures the generator with a base URL and destination to write the sitemap index file.
        Parameters:
        baseUrl - All URLs in the generated sitemap(s) should appear under this base URL
        outFile - The sitemap index will be written out at this location
        Throws:
        MalformedURLException