org.apache.cocoon.sitemap
Class SitemapServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.cocoon.sitemap.SitemapServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class SitemapServlet
extends HttpServlet

Use this servlet as an entry point to Cocoon. It wraps the TreeProcessor and delegates all requests to it.

Version:
$Id: SitemapServlet.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
Serialized Form

Nested Class Summary
protected  class SitemapServlet.RequestProcessor
           
 
Field Summary
protected  SitemapServlet.RequestProcessor processor
           
 
Constructor Summary
SitemapServlet()
           
 
Method Summary
 void destroy()
           
 void init()
          Initialize the servlet.
protected  void service(HttpServletRequest request, HttpServletResponse response)
          Process the incoming request using the Cocoon tree processor.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processor

protected SitemapServlet.RequestProcessor processor
Constructor Detail

SitemapServlet

public SitemapServlet()
Method Detail

init

public void init()
          throws ServletException
Initialize the servlet. The main purpose of this method is creating a configured TreeProcessor.

Throws:
ServletException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Process the incoming request using the Cocoon tree processor.

Throws:
ServletException
IOException

destroy

public void destroy()
See Also:
GenericServlet.destroy()


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.