Package org.zkoss.web.servlet.dsp

Examples of org.zkoss.web.servlet.dsp.Interpretation


    return feature == ALLOW_DIRECT_INCLUDE;
  }
  public void service(HttpServletRequest request,
  HttpServletResponse response, String path)
  throws ServletException, IOException {
    final Interpretation cnt = (Interpretation)_cache.get(path);
    if (cnt == null) {
      if (Servlets.isIncluded(request)) log.error("Failed to load the resource: "+path);
        //It might be eaten, so log the error
      response.sendError(response.SC_NOT_FOUND, path);
      return;
    }

    StringWriter sw =
      _webctx.shallCompress(request, get2ndExtension(path)) ?
        new StringWriter(4096): null;
    cnt.interpret(new ExtendletDspContext(_webctx, request, response, path, sw));

    if (sw != null) {
      final String result = sw.toString();
      sw = null; //free
View Full Code Here

TOP

Related Classes of org.zkoss.web.servlet.dsp.Interpretation

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.