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