info.magnolia.module.admininterface
Class PageMVCHandler

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler
Direct Known Subclasses:
FileThumbnailDialogPage, JavascriptIncludePage, SimplePageMVCHandler, TemplatedMVCHandler

public abstract class PageMVCHandler
extends info.magnolia.cms.servlets.CommandBasedMVCServletHandler

This is the MVCHandler for simple pages. The properties with coresponding request parameters are set with BeanUtils.

Version:
$Revision: 32667 $
Author:
Philipp Bracher

Field Summary
protected static String COMMAND_PARAMETER_NAME
          The name of the parameter passed by the request.
protected static String COMMAND_SHOW
           
protected static String 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
PageMVCHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Constuctor
 
Method Summary
protected  info.magnolia.cms.beans.runtime.MultipartForm getForm()
           
 String getI18nBasename()
           
protected  info.magnolia.cms.i18n.Messages getMsgs()
           
protected  info.magnolia.cms.util.RequestFormUtil getParams()
           
 void init()
           
protected  void setForm(info.magnolia.cms.beans.runtime.MultipartForm form)
           
 void setI18nBasename(String basename)
           
protected  void setMsgs(info.magnolia.cms.i18n.Messages msgs)
           
protected  void setParams(info.magnolia.cms.util.RequestFormUtil params)
           
 String show()
          This is an empty implementation return the default show view.
 
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
 
Methods inherited from interface info.magnolia.cms.servlets.MVCServletHandler
renderHtml
 

Field Detail

COMMAND_PARAMETER_NAME

protected static final String COMMAND_PARAMETER_NAME
The name of the parameter passed by the request. Not used for simple pages.

See Also:
Constant Field Values

COMMAND_SHOW

protected static final String COMMAND_SHOW
See Also:
Constant Field Values

VIEW_SHOW

protected static final String VIEW_SHOW
See Also:
Constant Field Values
Constructor Detail

PageMVCHandler

public PageMVCHandler(String name,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
Constuctor

Parameters:
name -
request -
response -
Method Detail

init

public void init()
Specified by:
init in interface info.magnolia.cms.servlets.MVCServletHandler
Overrides:
init in class info.magnolia.cms.servlets.MVCServletHandlerImpl
See Also:
TODO ! init is called twice !!! once by content2bean, once by MVCServlet !

show

public String show()
This is an empty implementation return the default show view.

Returns:
the view name

setForm

protected void setForm(info.magnolia.cms.beans.runtime.MultipartForm form)
Parameters:
form - The form to set.

getForm

protected info.magnolia.cms.beans.runtime.MultipartForm getForm()
Returns:
Returns the form.

setMsgs

protected void setMsgs(info.magnolia.cms.i18n.Messages msgs)
Parameters:
msgs - The msgs to set.

getMsgs

protected info.magnolia.cms.i18n.Messages getMsgs()
Returns:
Returns the msgs.

setParams

protected void setParams(info.magnolia.cms.util.RequestFormUtil params)
Parameters:
params - The params to set.

getParams

protected info.magnolia.cms.util.RequestFormUtil getParams()
Returns:
Returns the params.

getI18nBasename

public String getI18nBasename()

setI18nBasename

public void setI18nBasename(String basename)


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.