public class StaticPageVelocityViewController extends VelocityViewController
StaticPageContentManager
. The list of static page sections will be exposed under the name
pageSections
.Constructor and Description |
---|
StaticPageVelocityViewController() |
Modifier and Type | Method and Description |
---|---|
StaticPageContentManager |
getContentManager() |
protected boolean |
prepareModel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> model)
Prepares the model by adding the key value pairs.
|
void |
setContentManager(StaticPageContentManager contentManager)
Set the content manager
|
getContentTemplate, getPage, getSelectedMenu, getView, handleRequestInternal, setContentTemplate, setCssCategories, setJavaScriptCategories, setPage, setSelectedMenu, setTemplateManager, setView
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public StaticPageContentManager getContentManager()
protected boolean prepareModel(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,Object> model) throws Exception
VelocityViewController
prepareModel
in class VelocityViewController
request
- the requestresponse
- the responsemodel
- the model to prepareException
- Exception.public void setContentManager(StaticPageContentManager contentManager)
contentManager
- the manager of the static contentCopyright © 2019 Communote team. All rights reserved.