org.exoplatform.web.command
Class CommandHandler
java.lang.Object
org.exoplatform.web.WebRequestHandler
org.exoplatform.web.command.CommandHandler
public class CommandHandler
- extends WebRequestHandler
Created by The eXo Platform SAS
Mar 21, 2007
|
Method Summary |
Command |
createCommand(java.lang.String type,
java.util.Map props)
This method should use the java reflection to create the command object according to the command
type, then populate the command properties |
void |
execute(WebAppController controller,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
java.lang.String[] |
getPath()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandHandler
public CommandHandler()
getPath
public java.lang.String[] getPath()
- Specified by:
getPath in class WebRequestHandler
execute
public void execute(WebAppController controller,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.lang.Exception
- Specified by:
execute in class WebRequestHandler
- Throws:
java.lang.Exception
createCommand
public Command createCommand(java.lang.String type,
java.util.Map props)
throws java.lang.Exception
- This method should use the java reflection to create the command object according to the command
type, then populate the command properties
- Parameters:
type - The command class typeprops - list of the properties that should be set in the command object
- Returns:
- The command object instance
- Throws:
java.lang.Exception
Copyright © 2010 eXo Platform SAS. All Rights Reserved.