com.arsdigita.dispatcher
Interface Dispatcher

All Known Implementing Classes:
BaseDispatcherServlet, BebopDispatcher, DispatcherChain, JSPApplicationDispatcher, MapDispatcher, PageDispatcher, QueryLog, SiteNodeDispatcher

public interface Dispatcher

Defines a single dispatch method that allows programmers to pass extra context information around in a RequestContext object. Thus, when dispatcher A chains to dispatcher B, dispatcher B can determine what portion of the original request URL it needs to work with and what portion just made dispatcher A chain to dispatcher B. This context information allows a dispatcher to dynamically hand off a request to another dispatcher. A dispatcher is an entry point for a package. Each package defines a dispatcher, which brokers out requests within the package. The dispatcher for a package can dispatch requests to other packages. Multiple packages can share the same dispatcher type but not instance.

If a dispatcher object for a package also implements HttpServlet, then it is also an entry point for the entire web application.

Since:
4.5
Version:
ACS 4.5
Author:
Bill Schneider

Field Summary
static String versionId
           
 
Method Summary
 void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestContext actx)
          Dispatches this request.
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

dispatch

public void dispatch(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     RequestContext actx)
              throws IOException,
                     javax.servlet.ServletException
Dispatches this request.

Parameters:
request - the servlet request object
response - the servlet response object
actx - the request context
Throws:
IOException - may be thrown by the dispatcher to indicate an I/O error
javax.servlet.ServletException - may be thrown by the dispatcher to propagate a generic error to its caller


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC