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 |
|---|---|
java.lang.String |
getViewName()
Return the name of the view to delegate to.
|
protected ModelAndView |
handleRenderRequestInternal(RenderRequest request,
RenderResponse response)
Return a ModelAndView object with the specified view name.
|
protected void |
initApplicationContext()
Subclasses can override this for custom initialization behavior.
|
void |
setViewName(java.lang.String viewName)
Set the name of the view to delegate to.
|
handleActionRequest, handleActionRequestInternal, handleRenderRequest, isRenderWhenMinimized, isSynchronizeOnSession, setRenderWhenMinimized, setSynchronizeOnSessionapplyCacheSeconds, cacheForSeconds, check, checkAndPrepare, checkAndPrepare, getCacheSeconds, isRequireSession, preventCaching, setCacheSeconds, setRequireSessiongetPortletContext, getTempDir, isContextRequired, setPortletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContextpublic void setViewName(java.lang.String viewName)
public java.lang.String getViewName()
protected void initApplicationContext()
ApplicationObjectSupportThe default implementation is empty. Called by
ApplicationObjectSupport.initApplicationContext(org.springframework.context.ApplicationContext).
protected ModelAndView handleRenderRequestInternal(RenderRequest request, RenderResponse response) throws java.lang.Exception
handleRenderRequestInternal in class AbstractControllerjava.lang.ExceptionAbstractController.handleRenderRequest(javax.portlet.RenderRequest, javax.portlet.RenderResponse),
AbstractController.handleActionRequestInternal(javax.portlet.ActionRequest, javax.portlet.ActionResponse)