422N/ASee LICENSE.txt included in this distribution for the specific
422N/Afile and include the License file at LICENSE.txt.
1186N/Ainclude file="pageconfig.jspf"
1281N/A cfg = PageConfig.get(request);
1281N/A String redir = cfg.canProcess();
1281N/A if (redir == null || redir.length() > 0) {
1281N/A response.sendRedirect(redir);
1473N/A String revision = cfg.getRequestedRevision();
1473N/A if (revision.length() == 0) {
1473N/A long flast = f.lastModified()/1000 * 1000;
1473N/A long lmdate = cfg.getConfig().getLastModified();
1473N/A if (request.getDateHeader("If-Modified-Since") >= flast) {
1473N/A response.setDateHeader("Last-Modified", flast);
1473N/A IOUtils.close(in); // can't do that in finally - in still needed
1473N/A response.setContentType(mimeType);
1473N/A response.setHeader("content-disposition", "attachment; filename="
1473N/A OutputStream o = response.getOutputStream();
1473N/A IOUtils.close(in);