| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IndexController |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * ============================================================================ | |
| 3 | * | |
| 4 | * File: IndexController.java | |
| 5 | *---------------------------------------------------------------------------- | |
| 6 | * | |
| 7 | * Copyright 2008 Erlend Nossum | |
| 8 | * | |
| 9 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 10 | * you may not use this file except in compliance with the License. | |
| 11 | * You may obtain a copy of the License at | |
| 12 | * | |
| 13 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 14 | * | |
| 15 | * Unless required by applicable law or agreed to in writing, software | |
| 16 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 18 | * See the License for the specific language governing permissions and | |
| 19 | * limitations under the License. | |
| 20 | * | |
| 21 | * Description: See javadoc below | |
| 22 | * | |
| 23 | * Created: Mar 25, 2008 | |
| 24 | * ============================================================================ | |
| 25 | */ | |
| 26 | ||
| 27 | package org.semispace.web.controller; | |
| 28 | ||
| 29 | import javax.servlet.http.HttpServletRequest; | |
| 30 | import javax.servlet.http.HttpServletResponse; | |
| 31 | ||
| 32 | import org.semispace.SemiSpaceInterface; | |
| 33 | import org.springframework.web.servlet.ModelAndView; | |
| 34 | import org.springframework.web.servlet.mvc.Controller; | |
| 35 | ||
| 36 | 0 | public class IndexController implements Controller { |
| 37 | private SemiSpaceInterface space; | |
| 38 | ||
| 39 | public void setSpace(SemiSpaceInterface space) { | |
| 40 | 0 | this.space = space; |
| 41 | 0 | } |
| 42 | ||
| 43 | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 44 | 0 | ModelAndView mv = new ModelAndView("space"); |
| 45 | ||
| 46 | 0 | return mv; |
| 47 | } | |
| 48 | ||
| 49 | } |