net.nplus1.anduril.web
Class ApplicationController

java.lang.Object
  extended bynet.nplus1.anduril.web.ApplicationController

public class ApplicationController
extends java.lang.Object

Used to provide business logic for the web application. The role of this class is to bridge the gap between the user interface and the business logic


Constructor Summary
ApplicationController()
          Default constructor that initializes the controller.
 
Method Summary
 java.lang.String processRequest(java.lang.String action, javax.servlet.http.HttpServletRequest request)
          Method that consumes a HTTP request and runs the underlying business logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationController

public ApplicationController()
Default constructor that initializes the controller.

Method Detail

processRequest

public java.lang.String processRequest(java.lang.String action,
                                       javax.servlet.http.HttpServletRequest request)
Method that consumes a HTTP request and runs the underlying business logic. This method is also used to determine if the user is authorized to perform the requested action and then delegates the execution of the business logic. Based on the logic it provides the next view for the UI to use.

Parameters:
action - the name of the business logic to execute
request - the HttpServletRequest used for processing
Returns:
the next UI view to use