Class SitemapService

java.lang.Object
fr.paris.lutece.plugins.seo.service.sitemap.SitemapService

public final class SitemapService extends Object
Sitemap Service
  • Method Details

    • generateSitemap

      public static String generateSitemap()
      Generate Sitemap
      Returns:
      The sitemap content
    • getSitemapFile

      public static File getSitemapFile()
      Gets the file the sitemap is written to. It lives outside the webapp : the webapp is a build artefact, replaced at every deployment, and a generated file kept there is lost - or, on a site shipping its own sitemap, overwritten. The directory defaults to a subdirectory of the system temporary directory, always writable and harmless since the daemon rebuilds the sitemap anyway ; point seo.generatedFilesPath at a persistent volume to keep it across restarts.
      Returns:
      The sitemap file, whose parent directory may not exist yet