Package fr.paris.lutece.plugins.seo.web
Class SitemapServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
fr.paris.lutece.plugins.seo.web.SitemapServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class SitemapServlet
extends jakarta.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:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
init, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SitemapServlet
public SitemapServlet()
-