| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| VirginProcessPageController |
|
| 1.0;1 |
| 1 | /****************************************************************************** | |
| 2 | * VirginProcessPageController.java - The Spring controller for the new AJAX based Virgin Processor | |
| 3 | * | |
| 4 | * PicMan - The BuckoSoft Picture Manager in Java | |
| 5 | * Copyright(c) 2009 - Dick Balaska | |
| 6 | * | |
| 7 | */ | |
| 8 | package com.buckosoft.PicMan.web; | |
| 9 | ||
| 10 | import java.io.IOException; | |
| 11 | import java.util.HashMap; | |
| 12 | import java.util.Map; | |
| 13 | ||
| 14 | import javax.servlet.ServletException; | |
| 15 | import javax.servlet.http.HttpServletRequest; | |
| 16 | import javax.servlet.http.HttpServletResponse; | |
| 17 | ||
| 18 | import org.springframework.web.servlet.ModelAndView; | |
| 19 | ||
| 20 | import com.buckosoft.BSAccount.web.BSAccountPageController; | |
| 21 | import com.buckosoft.BSAccount.web.BSAccountUserWebSession; | |
| 22 | ||
| 23 | /** The Spring controller for the new AJAX based Virgin Processor. <br> | |
| 24 | * See <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/WEB-INF/jsp/VirginProcessPage.jsp">VirginProcessPage.jsp</a> | |
| 25 | * which is pretty boring. All the good stuff happens in the javascript | |
| 26 | * <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/js/virginProcess.js">virginProcess.js</a>, | |
| 27 | * <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/js/filterEditor.js">filterEditor.js</a> | |
| 28 | * and | |
| 29 | * <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/WebContent/js/virginProcessAjax.js">virginProcessAjax.js</a>. | |
| 30 | * @author Dick Balaska | |
| 31 | * @since 2009/06/03 | |
| 32 | * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/web/VirginProcessPageController.java">VirginProcessPageController.java</a> | |
| 33 | */ | |
| 34 | 0 | public class VirginProcessPageController extends BSAccountPageController { |
| 35 | ||
| 36 | /** Spring standard http request handler | |
| 37 | * @param request The http request | |
| 38 | * @param response The http response | |
| 39 | * @return The Spring Model and View | |
| 40 | */ | |
| 41 | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) | |
| 42 | throws ServletException, IOException { | |
| 43 | ||
| 44 | 0 | BSAccountUserWebSession userWebSession = this.bsAccountMan.getUserWebSession(request); |
| 45 | ||
| 46 | 0 | String now = (new java.util.Date()).toString(); |
| 47 | ||
| 48 | 0 | Map<String, Object> myModel = new HashMap<String, Object>(); |
| 49 | 0 | myModel.put("userWebSession", userWebSession); |
| 50 | 0 | myModel.put("now", now); |
| 51 | ||
| 52 | 0 | return new ModelAndView("VirginProcessPage", "model", myModel); |
| 53 | } | |
| 54 | ||
| 55 | } |