comparison servlet3/src/main/java/digilib/servlet/Scaler.java @ 1032:4e368c85cce4

CLOSED - # 22: wrong contrast setting. dito #23 (at least on OSX 10.7) mostly juggling color channels. also separate version number for DocuImage class.
author robcast
date Sat, 10 Mar 2012 23:09:38 +0100
parents b2d97b842612
children 2ee261676828
comparison
equal deleted inserted replaced
1031:e077f52205a7 1032:4e368c85cce4
29 public class Scaler extends HttpServlet { 29 public class Scaler extends HttpServlet {
30 30
31 private static final long serialVersionUID = 5289386646192471549L; 31 private static final long serialVersionUID = 5289386646192471549L;
32 32
33 /** digilib servlet version (for all components) */ 33 /** digilib servlet version (for all components) */
34 public static final String version = "2.1b1 async"; 34 public static final String version = "2.1b2 async";
35 35
36 /** servlet error codes */ 36 /** servlet error codes */
37 public static enum Error { 37 public static enum Error {
38 UNKNOWN, AUTH, FILE, IMAGE 38 UNKNOWN, AUTH, FILE, IMAGE
39 }; 39 };
106 .getAttribute("digilib.servlet.configuration"); 106 .getAttribute("digilib.servlet.configuration");
107 if (dlConfig == null) { 107 if (dlConfig == null) {
108 // no Configuration 108 // no Configuration
109 throw new ServletException("No Configuration!"); 109 throw new ServletException("No Configuration!");
110 } 110 }
111 // log DocuImage version
112 logger.info("Scaler uses " + dlConfig.getValue("servlet.docuimage.version"));
111 // set our AuthOps 113 // set our AuthOps
112 useAuthorization = dlConfig.getAsBoolean("use-authorization"); 114 useAuthorization = dlConfig.getAsBoolean("use-authorization");
113 authOp = (AuthOps) dlConfig.getValue("servlet.auth.op"); 115 authOp = (AuthOps) dlConfig.getValue("servlet.auth.op");
114 116
115 // DocuDirCache instance 117 // DocuDirCache instance