Package org.xdams.page.factory

Examples of org.xdams.page.factory.AjaxFactory


  @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());
View Full Code Here

TOP

Related Classes of org.xdams.page.factory.AjaxFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.