public abstract class CommandBasedMVCServletHandler extends MVCServletHandlerImpl
exception, request, response, VIEW_ERROR, VIEW_SUCCESS
VIEW_NOTHING
Modifier | Constructor and Description |
---|---|
protected |
CommandBasedMVCServletHandler(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
String |
execute(String commandName)
Try to get the command from the catalog.
|
protected Command |
findCommand(String commandName)
Used to get the command object.
|
String |
getCatalogueName() |
protected Context |
getCommandContext(String commandName)
The default implementation returns the current context.
|
protected String |
getViewNameAfterExecution(String commandName,
Context ctx)
Default implementation returns the commandName itself.
|
void |
setCatalogueName(String catalogueName) |
getCommand, getException, getExceptionStackTrace, getName, getRequest, getResponse, init, populateFromRequest, setCommand, setRequest, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderHtml
protected CommandBasedMVCServletHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public String execute(String commandName)
execute
in interface MVCServletHandler
execute
in class MVCServletHandlerImpl
protected String getViewNameAfterExecution(String commandName, Context ctx)
protected Command findCommand(String commandName)
protected Context getCommandContext(String commandName)
commandName
- the name of the command to be calledpublic String getCatalogueName()
public void setCatalogueName(String catalogueName)
catalogueName
- The catalogueName to set.Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.