|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.primix.tapestry.engine.AbstractEngine | +--com.primix.tapestry.engine.SimpleEngine | +--tutorial.survey.SurveyEngine
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SurveyEngine()
Method Detail |
public SurveyDatabase getDatabase()
protected void setupForRequest(RequestContext context)
AbstractEngine
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:
ITemplateSource
ISpecificationSource
IPageSource
Pool
Subclasses should invoke this implementation first, then perform their own setup.
setupForRequest
in class AbstractEngine
public java.lang.String[] getPageNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |