com.arsdigita.bebop.page
Class PageDispatcher

java.lang.Object
  extended bycom.arsdigita.bebop.page.PageDispatcher
All Implemented Interfaces:
Dispatcher
Direct Known Subclasses:
PageDispatcher

public class PageDispatcher
extends Object
implements Dispatcher

Class for dispatching a single Bebop page object. Generates the XML output for a Bebop page and renders it with an XSL template.


Field Summary
static String versionId
           
 
Constructor Summary
PageDispatcher(Page page)
          Creates a new page dispatcher for a page object.
PageDispatcher(Page page, PresentationManager pres)
          Creates a new page dispatcher for a page object and a PresentationManager.
 
Method Summary
 void dispatch(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, RequestContext ctx)
          Serves the Bebop page using the specified PresentationManager.
 Page getPage()
          Returns the wrapped page that this dispatcher serves.
 
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
See Also:
Constant Field Values
Constructor Detail

PageDispatcher

public PageDispatcher(Page page,
                      PresentationManager pres)
Creates a new page dispatcher for a page object and a PresentationManager.


PageDispatcher

public PageDispatcher(Page page)
Creates a new page dispatcher for a page object. Uses the default presentation manager.

Method Detail

dispatch

public void dispatch(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp,
                     RequestContext ctx)
              throws IOException,
                     javax.servlet.ServletException
Serves the Bebop page using the specified PresentationManager.

Specified by:
dispatch in interface Dispatcher
Parameters:
req - the servlet request object
resp - the servlet response object
ctx - 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

getPage

public Page getPage()
Returns the wrapped page that this dispatcher serves.

Returns:
the wrapped Page object


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