org.apache.cocoon.servletservice
Class DispatcherServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.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.
- Version:
- $Id$
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DispatcherServlet
public DispatcherServlet()
init
public void init()
throws ServletException
- Throws:
ServletException
service
protected void service(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Throws:
ServletException
IOException
Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved.