Package org.ugate.service.web.ui.WebApplication

Examples of org.ugate.service.web.ui.WebApplication.ControllerResource


   * @throws Throwable
   *             thrown when the request cannot be processed
   */
  private boolean process(final HttpServletRequest req,
      final HttpServletResponse res) throws Throwable {
    final ControllerResource ctrlRes = WebApplication.DFLT.resolve(req);
    if (ctrlRes == null) {
      return false;
    }
    final TemplateEngine templateEngine = WebApplication.DFLT
        .getTemplateEngine();

    res.setContentType("text/html;charset=UTF-8");
    res.setHeader("Pragma", "no-cache");
    res.setHeader("Cache-Control", "no-cache");
    res.setDateHeader("Expires", 0);

    ctrlRes.getController().process(req, res, this.servletContext,
        templateEngine);
    return true;
  }
View Full Code Here

TOP

Related Classes of org.ugate.service.web.ui.WebApplication.ControllerResource

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.