org.apache.cocoon.servletservice
Class DispatcherServlet

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

public class DispatcherServlet
extends HttpServlet

A servlet that dispatch to managed sevlets from the context Spring container. It dispatch to servlets that has the property mountPath, and dispatches to the servlet with the longest prefix of the request pathInfo. This servlet will also initialize and destroy all the servlets that it finds from the context container. This means that there must only be one dispatcher servlet, otherwise the managed servlets will be initialized several times.

Since:
1.0.0
Version:
$Id: DispatcherServlet.java 615890 2008-01-28 14:26:03Z gkossakowski $
See Also:
Serialized Form

Constructor Summary
DispatcherServlet()
           
 
Method Summary
 Map getBlockServletMap()
           
 void init()
           
protected  void service(HttpServletRequest req, HttpServletResponse res)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Constructor Detail

DispatcherServlet

public DispatcherServlet()
Method Detail

init

public void init()
          throws ServletException
Throws:
ServletException

service

protected void service(HttpServletRequest req,
                       HttpServletResponse res)
                throws ServletException,
                       IOException
Throws:
ServletException
IOException

getBlockServletMap

public Map getBlockServletMap()


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