com.arsdigita.sitenode
Class SiteNodeDispatcher
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.arsdigita.dispatcher.BaseDispatcherServlet
com.arsdigita.kernel.KernelDispatcherServlet
com.arsdigita.sitenode.SiteNodeDispatcher
- All Implemented Interfaces:
- Dispatcher, com.arsdigita.dispatcher.DispatcherConstants, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Deprecated. Use DispatcherServlet
instead.
- public class SiteNodeDispatcher
- extends KernelDispatcherServlet
- implements Dispatcher
Main site-map dispatcher entry point for ACS. Selects a package to
serve from a site map (URL-to-ACS package) in the RDBMS. This can
be deployed as a servlet in web.xml, so that this becomes the main
entry point for an ACS application.
When a request comes in:
- The BaseDispatcherServlet superclass first looks for a concrete
file in the webapp root that matches the requested URL.
- If no file is found, we try to authenticate the user, and
resolve the request for a URL to a
PackageInstance
using the SiteNode
class, which represents a "site
map" (URL to package mapping).
- We pass control to the package-level dispatcher for that package,
which will then resolve the URL to a particular file in the filesystem.
- Since:
- 4.5
- Version:
- $Revision: #42 $ $Date: 2004/04/07 $
- Author:
- Bill Schneider
- See Also:
- Serialized Form
Method Summary |
void |
dispatch(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
RequestContext rc)
Deprecated. Resolves the URL to a particular package instance, using the
site_nodes table in the database, and passes control to the
individual package. |
static SiteNodeDispatcher |
getInstance()
Deprecated. Returns the currently-loaded instance of the request
processor servlet. |
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 |
versionId
public static final String versionId
- Deprecated.
- See Also:
- Constant Field Values
SiteNodeDispatcher
public SiteNodeDispatcher()
- Deprecated.
getInstance
public static SiteNodeDispatcher getInstance()
- Deprecated.
- Returns the currently-loaded instance of the request
processor servlet.
- Returns:
- The current JVM's RequestProcessor instance.
dispatch
public void dispatch(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
RequestContext rc)
throws IOException,
javax.servlet.ServletException
- Deprecated.
- Resolves the URL to a particular package instance, using the
site_nodes table in the database, and passes control to the
individual package.
- Specified by:
dispatch
in interface Dispatcher
- Parameters:
req
- The servlet request.resp
- The servlet response.rc
- the request context
- Throws:
javax.servlet.ServletException
- may be thrown by the
dispatcher to propagate a generic error to its caller
IOException
- may be thrown by the dispatcher
to indicate an I/O error
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC