@Controller
public class HomeController
extends Object
The webroot controller for the hac console.
-
Constructor Summary
Constructors
-
Method Summary
data(String chartId,
long start,
long end,
long utcOffset)
index(org.springframework.ui.Model model)
poll(String chartId,
long interval,
long utcOffset)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HomeController
public HomeController()
-
Method Details
-
index
@RequestMapping("/")
public String index(org.springframework.ui.Model model)
-
poll
@RequestMapping(value="poll",
method=GET,
headers="Accept=application/json")
@ResponseBody
public Map poll(@ModelAttribute("chartId")
String chartId,
@ModelAttribute("timePeriod")
long interval,
@ModelAttribute("utcOffset")
long utcOffset)
-
data
@RequestMapping(value="fetch",
method=GET,
headers="Accept=application/json")
@ResponseBody
public Map data(@ModelAttribute("chartId")
String chartId,
@ModelAttribute("start")
long start,
@ModelAttribute("end")
long end,
@ModelAttribute("utcOffset")
long utcOffset)