tutorial.survey
Class SurveyEngine

java.lang.Object
  |
  +--com.primix.tapestry.engine.AbstractEngine
        |
        +--com.primix.tapestry.engine.SimpleEngine
              |
              +--tutorial.survey.SurveyEngine
All Implemented Interfaces:
java.util.EventListener, java.io.Externalizable, HttpSessionBindingListener, IEngine, java.io.Serializable

public class SurveyEngine
extends SimpleEngine

Version:
$Id: SurveyEngine.java,v 1.4 2001/05/02 18:07:07 hship Exp $
Author:
Howard Ship
See Also:
Serialized Form

Fields inherited from class com.primix.tapestry.engine.AbstractEngine
HELPER_BEAN_POOL_NAME, PAGE_SOURCE_NAME, pageSource, SCRIPT_SOURCE_NAME, specification, SPECIFICATION_SOURCE_NAME, specificationSource, TEMPLATE_SOURCE_NAME, templateSource, VISIT_CLASS_PROPERTY_NAME
 
Fields inherited from interface com.primix.tapestry.IEngine
EXCEPTION_PAGE, HOME_PAGE, STALE_LINK_PAGE, STALE_SESSION_PAGE
 
Constructor Summary
SurveyEngine()
           
 
Method Summary
 SurveyDatabase getDatabase()
           
 java.lang.String[] getPageNames()
           
protected  void setupForRequest(RequestContext context)
          Invoked from AbstractEngine.service(RequestContext) to ensure that the engine's instance variables are setup.
 
Methods inherited from class com.primix.tapestry.engine.SimpleEngine
cleanupAfterRequest, createPageRecorder, forgetPage, getActivePageNames, getPageRecorder, readExternal, writeExternal
 
Methods inherited from class com.primix.tapestry.engine.AbstractEngine
activateExceptionPage, cleanupEngine, clearCachedData, constructService, createVisit, extendDescription, getContextPath, getHasVisit, getHelperBeanPool, getListeners, getLocale, getMonitor, getPageSource, getResourceResolver, getScriptSource, getService, getServletPath, getSpecification, getSpecificationSource, getTemplateSource, getVisit, getVisit, handleStaleLinkException, handleStaleSessionException, isResetServiceEnabled, isStateful, redirect, redirectOut, render, reportException, restart, service, serviceAction, serviceDirect, servicePage, serviceReset, setLocale, setStateful, setVisit, toString, valueBound, valueUnbound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SurveyEngine

public SurveyEngine()
Method Detail

getDatabase

public SurveyDatabase getDatabase()

setupForRequest

protected void setupForRequest(RequestContext context)
Description copied from class: AbstractEngine
Invoked from AbstractEngine.service(RequestContext) to ensure that the engine's instance variables are setup. This allows the application a chance to restore transient variables that will not have survived deserialization. Determines the servlet prefix: this is the base URL used by services to build URLs. It consists of two parts: the context path and the servlet path.

The servlet path is retrieved from HttpServletRequest.getServletPath().

The context path is retrieved from HttpServletRequest.getContextPath().

The final path is available via the AbstractEngine.getServletPath() method.

In addition, this method locates and/or creates the:

Subclasses should invoke this implementation first, then perform their own setup.

Overrides:
setupForRequest in class AbstractEngine

getPageNames

public java.lang.String[] getPageNames()