annotate client/digitallibrary/WEB-INF/digilib-config.xml @ 502:61f55ca1d533 digilibPDF

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