Exemplo n.º 1
0
 /**
  * Retrieve command related to task specified by task id.
  *
  * @param id
  * @param request
  * @return
  * @throws UnsupportedEncodingException
  */
 @RequestMapping(
     value = "/command/{id:[\\d]+}/get",
     method = {RequestMethod.GET})
 @ResponseBody
 public IRestResponse getCommand(@PathVariable final Long id, HttpServletRequest request)
     throws UnsupportedEncodingException {
   logger.info("Request received. URL: '/lider/task/command/{}/get'", id);
   IRestResponse restResponse = taskProcessor.getCommand(id);
   logger.debug("Completed processing request, returning result: {}", restResponse.toJson());
   return restResponse;
 }