com.arsdigita.sitenode
Class SiteNodeDispatcher

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.arsdigita.dispatcher.BaseDispatcherServlet
              extended bycom.arsdigita.kernel.KernelDispatcherServlet
                  extended bycom.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:

  1. The BaseDispatcherServlet superclass first looks for a concrete file in the webapp root that matches the requested URL.
  2. 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).
  3. 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

Field Summary
static String versionId
          Deprecated.  
 
Fields inherited from class com.arsdigita.dispatcher.BaseDispatcherServlet
DISPATCHER_PREFIX_ATTR, ERROR_REQUEST_ATTRIBUTE, INCLUDE_URI, JSP_EXCEPTION_ATTRIBUTE, ORIGINAL_REQUEST_ATTR, REDIRECT_SEMAPHORE, REENTRANCE_ATTRIBUTE, REQUEST_CONTEXT_ATTR, WELCOME_FILES, WRAPPED_REQUEST_ATTR
 
Constructor Summary
SiteNodeDispatcher()
          Deprecated.  
 
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 com.arsdigita.kernel.KernelDispatcherServlet
authenticateUser, init
 
Methods inherited from class com.arsdigita.dispatcher.BaseDispatcherServlet
addRequestListener, fireFinishedListener, fireStartListener, service
 
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
 

Field Detail

versionId

public static final String versionId
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

SiteNodeDispatcher

public SiteNodeDispatcher()
Deprecated. 
Method Detail

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