info.magnolia.module.admininterface
Class SimplePageMVCHandler
java.lang.Object
info.magnolia.cms.servlets.MVCServletHandlerImpl
info.magnolia.cms.servlets.CommandBasedMVCServletHandler
info.magnolia.module.admininterface.PageMVCHandler
info.magnolia.module.admininterface.SimplePageMVCHandler
- All Implemented Interfaces:
- info.magnolia.cms.servlets.MVCServletHandler
- Direct Known Subclasses:
- LinkBrowserDialogPage
public abstract class SimplePageMVCHandler
- extends PageMVCHandler
This is a simple default implementation. Overwrite the render method to process the page.
- Version:
- $Revision$ ($Author$)
- Author:
- Philipp Bracher
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 |
SimplePageMVCHandler(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary |
protected abstract void |
render(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Does the rendering job. |
void |
renderHtml(String view)
Calls the render method. |
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 |
SimplePageMVCHandler
public SimplePageMVCHandler(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Parameters:
name
- request
- response
-
renderHtml
public void renderHtml(String view)
throws IOException
- Calls the render method.
- Throws:
IOException
- See Also:
MVCServletHandler.renderHtml(java.lang.String)
render
protected abstract void render(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Does the rendering job. You have to override this method.
- Parameters:
request
- response
-
- Throws:
Exception
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.