org.exoplatform.web.command
Class CommandHandler

java.lang.Object
  extended by org.exoplatform.web.WebRequestHandler
      extended by org.exoplatform.web.command.CommandHandler

public class CommandHandler
extends WebRequestHandler

Created by The eXo Platform SAS Mar 21, 2007


Constructor Summary
CommandHandler()
           
 
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 org.exoplatform.web.WebRequestHandler
onDestroy, onInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandHandler

public CommandHandler()
Method Detail

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 type
props - list of the properties that should be set in the command object
Returns:
The command object instance
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.