Class GenerateSitemaps


  • public class GenerateSitemaps
    extends Object
    Command-line utility for generating HTML and Sitemaps.org protocol Sitemaps.
    Author:
    Robert Tansley, Stuart Lewis
    • Method Detail

      • generateSitemapsScheduled

        public static void generateSitemapsScheduled()
                                              throws IOException,
                                                     SQLException
        Runs generate-sitemaps without any params for the scheduler (task-scheduler.xml).
        Throws:
        SQLException - if a database error occurs.
        IOException - if IO error occurs.
      • deleteSitemaps

        public static void deleteSitemaps()
                                   throws IOException
        Delete the sitemaps directory and its contents if it exists
        Throws:
        IOException - if IO error occurs
      • generateSitemaps

        public static void generateSitemaps​(boolean makeHTMLMap,
                                            boolean makeSitemapOrg)
                                     throws SQLException,
                                            IOException
        Generate sitemap.org protocol and/or basic HTML sitemaps.
        Parameters:
        makeHTMLMap - if true, generate an HTML sitemap.
        makeSitemapOrg - if true, generate an sitemap.org sitemap.
        Throws:
        SQLException - if database error if a database error occurs.
        IOException - if IO error if IO error occurs.