public class ViewTopicWebApp extends ViewTopicAction implements ModulesWebApp
CachedAction.OutputProvider
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
appStartPage |
protected java.lang.String |
webAppName |
defaultLang, defaultTopic, noTopic, tmManager, topicContextKey, topicMapContextKey, topicRequestKey
defaultRequestParameters, forwardRequestParameters, requestContextKey, staticContext, templateKey, templateManager
cache, caching, threadPool
actionParamKey, handledActions, httpHeaders, isDefaultAction, replacements, replacementsInitialized, servletModule
engine, initScript, persistentObjects, scriptManager, startScript, stopScript
autoStart, isInitialized, isRunning, logging, loggingModule, moduleManager
Constructor and Description |
---|
ViewTopicWebApp() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppName()
Returns the name of the web app.
|
java.lang.String |
getAppStartPage()
Returns the URL for the start page of the web app.
|
java.lang.String |
getAppTopicPage(java.lang.String si)
Returns the URL representing the topic with the given subject
identifier.
|
void |
init(ModuleManager manager,
java.util.HashMap<java.lang.String,java.lang.Object> settings)
Initialises the module.
|
void |
start(ModuleManager manager)
Starts the module.
|
getCacheKey, getCacheKeyParams, getDependencies, getStaticTemplateContext, getTemplateContext, getTopic, getTopics, handleAction, stop
doOutput, getForwardedParameters, getTemplate, putStaticContext, returnOutput
buildCacheKey, readMetadata, writeMetadata
addHandledAction, doReplacements, handleRequest, isHandleAction, setActionParamKey, setHttpHeaders
getScriptEngine
isInitialized, isRunning, requireLogging, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies, isInitialized, isRunning, stop
protected java.lang.String webAppName
protected java.lang.String appStartPage
public void init(ModuleManager manager, java.util.HashMap<java.lang.String,java.lang.Object> settings) throws ModuleException
Module
Initialises the module. After constructor, this is the first method called in the life cycle of a module. It should not perform anything time consuming or anything with notable outside side effects. It should only read the parameters and initialise the module so that it can later be started. Note that a module being initialised doesn't mean that it necessarily will ever be started.
A ModuleException may be thrown if something vital is missing from the parameters or they are not sensible. In some cases you may not want to throw an exception even if vital initialisation information is missing. If, for example, it is possible that the module is initialised in some other way between the init and the start method calls. A ModuleException may also be thrown at the start method if the module is still not initialised.
init
in interface Module
init
in class ViewTopicAction
manager
- The module manager handling this module. You may keep a
reference to it if needed.ModuleException
public void start(ModuleManager manager) throws ModuleException
Module
start
in interface Module
start
in class ViewTopicAction
manager
- The module manager handling this module.ModuleException
public java.lang.String getAppName()
ModulesWebApp
getAppName
in interface ModulesWebApp
public java.lang.String getAppStartPage()
ModulesWebApp
getAppStartPage
in interface ModulesWebApp
public java.lang.String getAppTopicPage(java.lang.String si)
ModulesWebApp
getAppTopicPage
in interface ModulesWebApp
si
- The subject identifier of the topic.Copyright 2004-2015 Wandora Team