changeset 158:e9a81ac446cb

added Texter servlet and relative paths
author robcast
date Tue, 16 Sep 2003 18:26:31 +0200
parents 4879b944bb03
children e743b853efca
files client/digitallibrary/WEB-INF/digilib-config.xml client/digitallibrary/WEB-INF/web.xml
diffstat 2 files changed, 41 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/WEB-INF/digilib-config.xml	Tue Sep 16 18:25:53 2003 +0200
+++ b/client/digitallibrary/WEB-INF/digilib-config.xml	Tue Sep 16 18:26:31 2003 +0200
@@ -1,7 +1,7 @@
 <!-- Digilib servlet config file -->
 
 <digilib-config>
-  <parameter name="debug-level" value="0" />
+  <parameter name="debug-level" value="10" />
 
   <!--  Image to be sent to indicate general failure. -->
   <parameter name="error-image" value="/docuserver/images/icons/broken.gif" />
@@ -14,8 +14,11 @@
   <parameter name="basedir-list" value="/docuserver/images:/docuserver/scaled/small" />
 
   <!-- Java class to use for image operations -->
-  <parameter name="docuimage-class" value="digilib.image.JAIDocuImage" />
+  <parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" />
 
+  <!-- mimimum amount of scaling done with antialiasing -->
+  <parameter name="subsample-minimum" value="2"/>
+  
   <!-- is sending whole image files with mo=file allowed? -->
   <parameter name="sendfile-allowed" value="true" />
 
@@ -24,10 +27,10 @@
        (see tomcat-users.xml).
        Authorization for resources (directories) is evaluated by the servlet 
        (see auth-file). -->
-  <parameter name="use-authorization" value="true" />
+  <parameter name="use-authorization" value="false" />
 
   <!-- 	  URL location of XML file with authorization requirements. -->
-  <parameter name="auth-file" value="/docuserver/www/digitallibrary/WEB-INF/digilib-auth.xml" />
+  <parameter name="auth-file" value="digilib-auth.xml" />
 
   <!-- Part of URL to indicate authenticated access to Tomcat. -->
   <parameter name="auth-url-path" value="authenticated/" />
--- a/client/digitallibrary/WEB-INF/web.xml	Tue Sep 16 18:25:53 2003 +0200
+++ b/client/digitallibrary/WEB-INF/web.xml	Tue Sep 16 18:26:31 2003 +0200
@@ -21,15 +21,22 @@
         <servlet-class>
             digilib.servlet.Scaler
         </servlet-class>
-        <!-- parameters to the servlet -->
-        <init-param>
-            <param-name>
-                config-file
-            </param-name>
-            <param-value>
-                /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
-            </param-value>
-        </init-param>
+        <!-- Load this servlet at server startup time -->
+        <load-on-startup>
+            5
+        </load-on-startup>
+  </servlet>
+  <!-- The Texter servlet -->
+  <servlet>
+        <servlet-name>
+            Texter
+        </servlet-name>
+        <description>
+            The servlet for text.
+        </description>
+        <servlet-class>
+            digilib.servlet.Texter
+        </servlet-class>
         <!-- Load this servlet at server startup time -->
         <load-on-startup>
             5
@@ -52,14 +59,6 @@
                 WARNING
             </param-value>
         </init-param>
-        <init-param>
-            <param-name>
-                config-file
-            </param-name>
-            <param-value>
-                /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
-            </param-value>
-        </init-param>
         <load-on-startup>
             3
         </load-on-startup>
@@ -81,7 +80,24 @@
             /authenticated/servlet/Scaler/*
         </url-pattern>
   </servlet-mapping>
-  <!-- The mapping for the JSP servlet -->
+  <!-- The mapping for the Texter servlet -->
+  <servlet-mapping>
+        <servlet-name>
+            Texter
+        </servlet-name>
+        <url-pattern>
+            /servlet/Texter/*
+        </url-pattern>
+  </servlet-mapping>
+  <servlet-mapping>
+        <servlet-name>
+            Texter
+        </servlet-name>
+        <url-pattern>
+            /authenticated/servlet/Texter/*
+        </url-pattern>
+  </servlet-mapping>
+   <!-- The mapping for the JSP servlet -->
   <servlet-mapping>
         <servlet-name>
             doc-jsp