@RequestMapping(value = "/{archive}/ajax", method = RequestMethod.GET)
public ResponseEntity<String> ajaxCall(@PathVariable String archive, @ModelAttribute("userBean") UserBean userBean, @ModelAttribute("workFlowBean") WorkFlowBean workFlowBean, @ModelAttribute("confBean") ConfBean confBean, ModelMap modelMap, HttpServletRequest request,
HttpServletResponse response) throws Exception {
common(confBean, userBean, archive, modelMap, request, response);
AjaxFactory ajaxFactory = new AjaxFactory(request, response, modelMap);
AjaxBean ajaxBean = new AjaxBean();
try {
ajaxBean = ajaxFactory.execute();
} catch (Exception e) {
e.printStackTrace();
}
HttpHeaders responseHeaders = new HttpHeaders();
responseHeaders.add("Content-Type", ajaxBean.getContentType().equals("") ? "text/xml; charset=iso-8859-1" : ajaxBean.getContentType());