Class SitemapServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class SitemapServlet
    extends javax.servlet.http.HttpServlet
    Serves the sitemap generated by SitemapService.

    The sitemap is written outside the webapp, so no servlet container serves it : the webapp is a build artefact, replaced at every deployment, and a generated file kept there is lost. This servlet is what publishes it, and the rewrite rules of the plugin expose it on /sitemap-seo.xml, the path to declare in the Sitemap directive of robots.txt.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SitemapServlet()  
    • Method Summary

      • Methods inherited from class javax.servlet.http.HttpServlet

        service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SitemapServlet

        public SitemapServlet()