public class ParameterizableViewController extends AbstractController
Workflow (and that defined by superclass):
handleRenderRequestInternal
which just returns the view, named by
the configuration property viewName
.This controller does not handle action requests.
Exposed configuration properties (and those defined by superclass):
name | default | description |
viewName | null | the name of the view the viewResolver will use to forward to (if this property is not set, an exception will be thrown during initialization) |
logger
Constructor and Description |
---|
ParameterizableViewController() |
Modifier and Type | Method and Description |
---|---|
String |
getViewName()
Return the name of the view to delegate to.
|
protected ModelAndView |
handleRenderRequestInternal(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Return a ModelAndView object with the specified view name.
|
protected void |
initApplicationContext() |
void |
setViewName(String viewName)
Set the name of the view to delegate to.
|
handleActionRequest, handleActionRequestInternal, handleRenderRequest, isRenderWhenMinimized, isSynchronizeOnSession, setRenderWhenMinimized, setSynchronizeOnSession
applyCacheSeconds, cacheForSeconds, check, checkAndPrepare, checkAndPrepare, getCacheSeconds, isRequireSession, preventCaching, setCacheSeconds, setRequireSession
getPortletContext, getTempDir, isContextRequired, setPortletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
public String getViewName()
public void setViewName(String viewName)
protected ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws Exception
protected void initApplicationContext()
initApplicationContext
in class ApplicationObjectSupport
Copyright © 2019 Liferay, Inc.. All rights reserved.