@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public HistoryEntity[] getHistory() { return historyManagement.getAll(); }
@Override public void postHandle( HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) { // super.postHandle(request, response, handler, modelAndView); log.trace("Calling addHistoryAction"); if (!request.getMethod().equalsIgnoreCase("post") || !request.getRequestURI().equalsIgnoreCase("/error")) historyManagement.addAction( request.getMethod(), request.getRequestURI(), String.valueOf(response.getStatus())); } }
@RequestMapping( value = "/{actions}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public HistoryEntity[] getHistory(@PathVariable("actions") int actions) { return historyManagement.getAll(actions); } }