com.clickntap.smart
Class SmartSwitcher

java.lang.Object
  extended by com.clickntap.smart.SmartSwitcher
All Implemented Interfaces:
org.springframework.web.servlet.mvc.Controller

public class SmartSwitcher
extends Object
implements org.springframework.web.servlet.mvc.Controller


Nested Class Summary
 class SmartSwitcher.TransactionalService
           
 
Constructor Summary
SmartSwitcher()
           
 
Method Summary
 boolean execute(SmartContext context)
           
static boolean executeAction(SmartContext context, SmartAction action, boolean reset)
           
static boolean executeBinds(SmartContext context, SmartAction action, boolean canContinue, boolean storable, boolean reset)
           
static void executeLoads(SmartContext context, SmartAction action)
           
static boolean executeRules(SmartContext context, SmartAction action, boolean canContinue)
           
static void executeScripts(SmartContext context, List<String> scripts)
           
 org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 org.springframework.web.servlet.ModelAndView restHandleRequest(SmartContext ctx)
           
 void setJdbcManager(JdbcManager jdbcManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartSwitcher

public SmartSwitcher()
Method Detail

handleRequest

public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Specified by:
handleRequest in interface org.springframework.web.servlet.mvc.Controller
Throws:
Exception

restHandleRequest

public org.springframework.web.servlet.ModelAndView restHandleRequest(SmartContext ctx)
                                                               throws Exception
Throws:
Exception

execute

public boolean execute(SmartContext context)
                throws Exception
Throws:
Exception

executeAction

public static boolean executeAction(SmartContext context,
                                    SmartAction action,
                                    boolean reset)
                             throws Exception
Throws:
Exception

executeRules

public static boolean executeRules(SmartContext context,
                                   SmartAction action,
                                   boolean canContinue)
                            throws Exception
Throws:
Exception

executeScripts

public static void executeScripts(SmartContext context,
                                  List<String> scripts)
                           throws Exception
Throws:
Exception

setJdbcManager

public void setJdbcManager(JdbcManager jdbcManager)

executeBinds

public static boolean executeBinds(SmartContext context,
                                   SmartAction action,
                                   boolean canContinue,
                                   boolean storable,
                                   boolean reset)
                            throws Exception
Throws:
Exception

executeLoads

public static void executeLoads(SmartContext context,
                                SmartAction action)
                         throws Exception
Throws:
Exception


Copyright © 2014. All rights reserved.