view client/digitallibrary/WEB-INF/digilib-config.xml @ 305:c118e503f625

Servlet version 1.5.1b -- the beginning of the next generation :-) - code restructuring to improve scaleability - new Initialiser servlet that must be run first - image transformation work moved to DigilibImageWorker class - Maximum number of concurrent threads limited by Semaphore - old JIMI toolkit implementation removed - new option "mo=jpg" to force sending JPEGs
author robcast
date Sun, 24 Oct 2004 23:12:56 +0200
parents 59a2bc922652
children 8a58a25b6097
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<!-- Digilib servlet config file -->

<digilib-config>
  <!--  Image to be sent to indicate general failure. -->
  <parameter name="error-image" value="/docuserver/images/icons/broken.gif" />

  <!--  Image to be sent to indicate authorization failure. -->
  <parameter name="denied-image" value="/docuserver/images/icons/alert.red.gif" />

  <!-- List of directories where images are searched.
       Directories with low-resolution images are LAST!!! in list. --> 
  <parameter name="basedir-list" value="/docuserver/images:/docuserver/scaled/small:/docuserver/scaled/thumb" />

  <!-- Java class to use for image operations -->
  <parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" />

  <!-- mimimum amount of scaling done with antialiasing -->
  <parameter name="subsample-minimum" value="2"/>
  
  <!-- default interpolation quality (0=worst) -->
  <parameter name="default-quality" value="1"/>
  
  <!-- is sending whole image files with mo=file allowed? -->
  <parameter name="sendfile-allowed" value="true" />

  <!-- the a maximum size of any sent image. (0 means no limit) -->
  <parameter name="max-image-size" value="0" />

  <!-- use safe but slow directory indexing -->
  <parameter name="safe-dir-index" value="false" />

  <!-- number of working threads -->
  <parameter name="worker-threads" value="2" />

  <!-- Restrict access to authorized users.
       User authentication and roles are provided by the servlet container 
       (see tomcat-users.xml).
       Authorization for resources (directories) is evaluated by the servlet 
       (see auth-file). -->
  <parameter name="use-authorization" value="false" />

  <!-- URL location of XML file with authorization requirements. -->
  <parameter name="auth-file" value="digilib-auth.xml" />

  <!-- Part of URL to indicate authenticated access to Tomcat. -->
  <parameter name="auth-url-path" value="authenticated" />
  
  <!-- use mapping of "virtual directories" to real directories on the server -->
  <parameter name="use-mapping" value="false"/>
  
  <!-- location of XML mapping file -->
  <parameter name="mapping-file" value="digilib-map.xml"/>
  
  <!-- location of logger config file -->
  <parameter name="log-config-file" value="log4j-config.xml"/>
  
</digilib-config>