View Javadoc

1   package ch.busyboxes.agoo.controller;
2   
3   import org.apache.log4j.Logger;
4   import org.springframework.stereotype.Controller;
5   import org.springframework.ui.ModelMap;
6   import org.springframework.web.bind.annotation.RequestMapping;
7   import org.springframework.web.bind.annotation.RequestMethod;
8   
9   /**
10   * This class represents the controller of the about page
11   * 
12   * @author julien@busyboxes.ch
13   */
14  @Controller
15  @RequestMapping("/about.html")
16  public class AboutController {
17  	
18  	/** Logger for this class */
19  	private Logger logger = Logger.getLogger(IndexController.class);
20  	
21  	/**
22  	 * Default constructor
23  	 */
24  	public AboutController() {
25  		logger.info("About controller initiated");
26  	}
27  	
28  	/**
29  	 * This method responds to a GET request on the index page
30  	 * 
31  	 * @param model the model for the page
32  	 */
33  	@RequestMapping(method = RequestMethod.GET)
34  	public void indexPage(ModelMap model) {
35  		
36  		logger.debug("Fetching about page information");
37  	}
38  
39  }