TROIKA.ASP - the MVC framework

Class Command

Object
   |
   +--Command
Direct Known Subclasses:
HelloAction, LoginAction, SecretAction

class Command


This is Command class the base class for all user defined commands.
Defined in Command.js


Constructor Summary
Command(<Config> config)
            Constructs a new instance of Command class.
 
Method Summary
 ResponseContext execute(<Environment> environment, <RequestContext> requestCxt)
           Performs business logic and returns responseContext
 Forward findForward(<RequestContext> requestCxt, <String> forwardName)
           Searches Command mappings from config.xml for Forward object and returns it if found.
 String getConnectionString(<String> dbName)
           Looks up database connection string from Config class and return it.
 Command init(<Config> config)
           Initializes Command.
 void logError(<Object> error)
           Logs error message to application log file.
 void logInfo(<String> msg)
           Logs info message to application log file.
 void logWarn(<String> msg)
           Logs warning message to application log file.

Constructor Detail

Command

Command(<Config> config)

Method Detail

execute

ResponseContext execute(<Environment> environment, <RequestContext> requestCxt)

findForward

Forward findForward(<RequestContext> requestCxt, <String> forwardName)

getConnectionString

String getConnectionString(<String> dbName)

init

Command init(<Config> config)

logError

void logError(<Object> error)

logInfo

void logInfo(<String> msg)

logWarn

void logWarn(<String> msg)

TROIKA.ASP - the MVC framework

www.troika-asp.com
Documentation generated on Sun Jun 15 17:59:32 2008