@Controller(value="statisticsController") @RequestMapping(value="/statistics") public final class StatisticsController extends Object implements org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
StatisticsController() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateUptime(double difference,
Queue<Integer> calculations,
Queue<String> labels)
Calculates the up time.
|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handles the request.
|
void |
setServletContext(javax.servlet.ServletContext servletContext) |
@RequestMapping(method=GET)
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws Exception
httpServletRequest - the http servlet requesthttpServletResponse - the http servlet responseException - the exceptionprotected String calculateUptime(double difference, Queue<Integer> calculations, Queue<String> labels)
difference - the differencecalculations - the calculationslabels - the labelspublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwareCopyright © 2004-2016 Apereo. All Rights Reserved.