ca.cbc.sportwire.servlet.pagehandlers
Interface PageHandler
- All Known Implementing Classes:
- BasicPageHandler
- public interface PageHandler
PageHandler.java: abstract interface for the classes that
are identified by the pathinfo and loaded just prior to rendering
the layout
template. Using these dynamically loaded
elements, you can adjust the layout and page templates, add data
items or do any other processing prior to rendering the page.
NOTE: PageHandler classes should be Singletons
Created: Fri Nov 30 20:31:10 2001
$Log: PageHandler.java,v $
Revision 1.4 2002/01/14 21:51:46 garym
bug fixes in topics and config files migration to Extended Properties
Revision 1.3 2001/12/23 17:55:23 garym
Allow for multiple SportPage apps on one JVM
Revision 1.2 2001/12/13 06:48:40 garym
Implemented a path object that can break up the elements of the path
Revision 1.1 2001/12/06 04:58:00 garym
DefaultPage now take template parts from properties
Revision 1.2 2001/12/01 05:08:21 garym
Updated documentation
Revision 1.1 2001/12/01 04:02:40 garym
Initial SportPageServlet files with sample templates
- Version:
- $Id: PageHandler.java,v 1.4 2002/01/14 21:51:46 garym Exp $
- Author:
- Gary Lawrence Murphy
Method Summary |
void |
setupPage(org.apache.commons.collections.ExtendedProperties appConfig,
java.lang.String pathinfo,
org.apache.velocity.context.Context context)
setupPage : This is called by the SportPageServlet
after the handler is retrieved and just before searching for
the layout template. |
setupPage
public void setupPage(org.apache.commons.collections.ExtendedProperties appConfig,
java.lang.String pathinfo,
org.apache.velocity.context.Context context)
setupPage
: This is called by the SportPageServlet
after the handler is retrieved and just before searching for
the layout template. Typically this method will stuff the
context with strings and objects to be referenced within the
templates, and can also change the templates to be used based
on values in the context.
- Parameters:
appConfig
- an application ExtendedProperties
mappathinfo
- a String
URI valuecontext
- a Velocity session Context
- See Also:
SportPageServlet
,
DefaultPageHandler