121122123124125126127128129130131
if (result.isFail()) { if (! result.isResponseSent() && ! res.isCommitted() && res.getStatus() / 100 == 2) { res.sendError(HttpServletResponse.SC_FORBIDDEN); } return; }
212213214215216217218219220221222
} catch (InterruptedException e) { log.log(Level.FINE, e.toString(), e); log.warning("XTP: interrupted for " + req.getPageURI()); res.sendError(503, "Server busy: XTP generation delayed"); } finally { if (resAdapt != null) resAdapt.close(); } }
153154155156157158159160161162163
try { page = getPage(request, response); if (page == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } page.service(request, response); }
120121122123124125126127128129130