changeset 263:e16d132aa6f6

Servlet version 1.21b1 - directory indexing got faster but less safe (configurable by "safe-dir-index") - mo=rawfile supplies filename - DigilibConfig takes File parameters - some SerialVersionUIDs (suggested by Eclipse)
author robcast
date Mon, 11 Oct 2004 21:23:00 +0200
parents 6715061ec3bd
children 4ea05660f3e0
files servlet/src/digilib/servlet/Scaler.java
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/servlet/src/digilib/servlet/Scaler.java	Mon Oct 11 21:23:00 2004 +0200
+++ b/servlet/src/digilib/servlet/Scaler.java	Mon Oct 11 21:23:00 2004 +0200
@@ -58,8 +58,10 @@
 //public class Scaler extends HttpServlet implements SingleThreadModel {
 public class Scaler extends HttpServlet {
 
+	private static final long serialVersionUID = -325080527268912852L;
+
 	// digilib servlet version (for all components)
-	public static final String dlVersion = "1.19b5";
+	public static final String dlVersion = "1.21b1";
 
 	// logger for accounting requests
 	Logger accountlog = Logger.getLogger("account.request");
@@ -417,7 +419,12 @@
 					if (dlRequest.hasOption("mo", "rawfile")) {
 						mt = "application/octet-stream";
 					}
+					logger.debug("Sending RAW File as is.");
 					ServletOps.sendFile(fileToLoad.getFile(), mt, response);
+					logger.info("Done in "
+							+ (System.currentTimeMillis() - startTime)
+							+ "ms");
+					return;
 				}
 			}