|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.servlets.MVCServletHandlerImpl info.magnolia.cms.servlets.CommandBasedMVCServletHandler info.magnolia.module.admininterface.PageMVCHandler info.magnolia.module.admininterface.TemplatedMVCHandler
public class TemplatedMVCHandler
A default page (handler) using a freemarker template to render. The default template name is following the class name. You can overwrite the getTemplateName() method which can return a template per view.
Field Summary |
---|
Fields inherited from class info.magnolia.module.admininterface.PageMVCHandler |
---|
COMMAND_PARAMETER_NAME, COMMAND_SHOW, VIEW_SHOW |
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
---|
exception, request, response, VIEW_ERROR, VIEW_SUCCESS |
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
---|
VIEW_NOTHING |
Constructor Summary | |
---|---|
TemplatedMVCHandler(java.lang.String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
protected java.lang.String |
getTemplateName(java.lang.String viewName)
Returns the template name for the rendering. |
void |
renderHtml(java.lang.String view)
Renders the template. |
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler |
---|
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams, show |
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler |
---|
execute, findCommand, getCatalogueName, getCommandContext, getViewNameAfterExecution, setCatalogueName |
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
---|
getCommand, getException, getExceptionStackTrace, getName, getRequest, getResponse, populateFromRequest, setCommand, setRequest, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplatedMVCHandler(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
name
- request
- response
- Method Detail |
---|
protected java.lang.String getTemplateName(java.lang.String viewName)
viewName
- the view name to render
public void renderHtml(java.lang.String view) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |