info.magnolia.module.admininterface
Class SimplePageMVCHandler

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
              extended by 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

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
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.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

SimplePageMVCHandler

public SimplePageMVCHandler(String name,
                            javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
Parameters:
name -
request -
response -
Method Detail

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-2012 Magnolia International Ltd.. All Rights Reserved.