Module com.semanticcms.core.sitemap
Package com.semanticcms.core.sitemap
Class SiteMapRobotsTxtServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.semanticcms.core.sitemap.SiteMapRobotsTxtServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
@WebServlet(urlPatterns="/robots.txt",
loadOnStartup=1)
public class SiteMapRobotsTxtServlet
extends HttpServlet
Adds the sitemap index to /robots.txt
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(HttpServletRequest req, HttpServletResponse resp) protected long
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
SERVLET_PATH
- See Also:
-
-
Constructor Details
-
SiteMapRobotsTxtServlet
public SiteMapRobotsTxtServlet()
-
-
Method Details
-
getLastModified
- Overrides:
getLastModified
in classHttpServlet
-
doGet
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
-