annotate client/digitallibrary/WEB-INF/digilib-config.xml @ 506:7dba370dda3b digilibPDF

added file location parameters for the PDFCache
author cmielack
date Fri, 13 Mar 2009 13:54:11 +0100
parents
children b75203f365e0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
506
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
2 <!-- Digilib servlet config file -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
3
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
4 <digilib-config>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
5 <!-- Image to be sent to indicate an error or general failure. -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
6 <parameter name="error-image" value="img/digilib-error.png" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
7
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
8 <!-- Image to be sent to indicate an authorization failure. -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
9 <parameter name="denied-image" value="img/digilib-denied.png" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
10
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
11 <!-- Image to be sent to indicate that the request was correct, but the specified image could not be ound. -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
12 <parameter name="notfound-image" value="img/digilib-notfound.png" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
13
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
14 <!-- List of directories where images are searched.
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
15 Directories with low-resolution images are LAST!!! in list.
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
16 Use OS-specific path separators (":" for Unix, ";" for Windows) -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
17 <parameter name="basedir-list" value="/docuserver/images:/docuserver/scaled/small:/docuserver/scaled/thumb" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
18
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
19 <!-- Java class to use for image operations -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
20 <parameter name="docuimage-class" value="digilib.image.ImageLoaderDocuImage" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
21
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
22 <!-- mimimum amount of scaling done with antialiasing -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
23 <parameter name="subsample-minimum" value="2"/>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
24
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
25 <!-- default interpolation quality (0=worst) -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
26 <parameter name="default-quality" value="1"/>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
27
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
28 <!-- is sending whole image files with mo=file allowed? -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
29 <parameter name="sendfile-allowed" value="true" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
30
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
31 <!-- the a maximum size of any sent image. (0 means no limit) -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
32 <parameter name="max-image-size" value="0" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
33
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
34 <!-- use safe but slow directory indexing -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
35 <parameter name="safe-dir-index" value="false" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
36
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
37 <!-- number of working threads -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
38 <parameter name="worker-threads" value="2" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
39
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
40 <!-- Restrict access to authorized users.
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
41 User authentication and roles are provided by the servlet container
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
42 (see tomcat-users.xml).
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
43 Authorization for resources (directories) is evaluated by the servlet
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
44 (see auth-file). -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
45 <parameter name="use-authorization" value="false" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
46
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
47 <!-- URL location of XML file with authorization requirements. -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
48 <parameter name="auth-file" value="digilib-auth.xml" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
49
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
50 <!-- Part of URL to indicate authenticated access to Tomcat. -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
51 <parameter name="auth-url-path" value="authenticated" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
52
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
53 <!-- use mapping of "virtual directories" to real directories on the server -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
54 <parameter name="use-mapping" value="false"/>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
55
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
56 <!-- location of XML mapping file -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
57 <parameter name="mapping-file" value="digilib-map.xml"/>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
58
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
59 <!-- location of logger config file -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
60 <parameter name="log-config-file" value="log4j-config.xml"/>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
61
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
62
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
63
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
64 <!-- location for PDF files while still in progress -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
65 <parameter name="pdf-temp-dir" value="pdf_temp/" />
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
66
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
67 <!-- location for PDF files upon completion -->
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
68 <parameter name="pdf-cache-dir" value="cache/"/>
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
69
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
70
7dba370dda3b added file location parameters for the PDFCache
cmielack
parents:
diff changeset
71 </digilib-config>