@Deprecated 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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
execute(String commandName)
Deprecated.
Try to get the command from the catalog.
|
protected info.magnolia.commands.chain.Command |
findCommand(String commandName)
Deprecated.
Used to get the command object.
|
String |
getCatalogueName()
Deprecated.
|
protected info.magnolia.context.Context |
getCommandContext(String commandName)
Deprecated.
The default implementation returns the current context.
|
protected String |
getViewNameAfterExecution(String commandName,
info.magnolia.context.Context ctx)
Deprecated.
Default implementation returns the commandName itself.
|
void |
setCatalogueName(String catalogueName)
Deprecated.
|
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, info.magnolia.context.Context ctx)
protected info.magnolia.commands.chain.Command findCommand(String commandName)
protected info.magnolia.context.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–2021 Magnolia International Ltd.. All rights reserved.