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:
MVCServletHandler
Direct Known Subclasses:
FileThumbnailDialogPage, JavascriptIncludePage, SimplePageMVCHandler, TemplatedMVCHandler

public abstract class PageMVCHandler
extends CommandBasedMVCServletHandler

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

Version:
$Revision: 41137 $
Author:
Philipp Bracher

Field Summary
protected static java.lang.String COMMAND_PARAMETER_NAME
          The name of the parameter passed by the request.
protected static java.lang.String COMMAND_SHOW
           
protected static java.lang.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(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Constuctor
 
Method Summary
protected  MultipartForm getForm()
           
 java.lang.String getI18nBasename()
           
protected  Messages getMsgs()
           
protected  RequestFormUtil getParams()
           
 void init()
          Called after instantiating.
protected  void setForm(MultipartForm form)
           
 void setI18nBasename(java.lang.String basename)
           
protected  void setMsgs(Messages msgs)
           
protected  void setParams(RequestFormUtil params)
           
 java.lang.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 java.lang.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 java.lang.String COMMAND_SHOW
See Also:
Constant Field Values

VIEW_SHOW

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

PageMVCHandler

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

Parameters:
name -
request -
response -
Method Detail

init

public void init()
Description copied from interface: MVCServletHandler
Called after instantiating.

Specified by:
init in interface MVCServletHandler
Overrides:
init in class MVCServletHandlerImpl
See Also:
TODO ! init is called twice !!! once by content2bean, once by MVCServlet !

show

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

Returns:
the view name

setForm

protected void setForm(MultipartForm form)
Parameters:
form - The form to set.

getForm

protected MultipartForm getForm()
Returns:
Returns the form.

setMsgs

protected void setMsgs(Messages msgs)
Parameters:
msgs - The msgs to set.

getMsgs

protected Messages getMsgs()
Returns:
Returns the msgs.

setParams

protected void setParams(RequestFormUtil params)
Parameters:
params - The params to set.

getParams

protected RequestFormUtil getParams()
Returns:
Returns the params.

getI18nBasename

public java.lang.String getI18nBasename()

setI18nBasename

public void setI18nBasename(java.lang.String basename)


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