changeset 10:4c7b1eedb186 vendor

First import of client module
author robcast
date Thu, 17 Jan 2002 15:29:52 +0100
parents c8d13c3179a8
children bb7864627cfa
files client/digitallibrary/WEB-INF/digilib-auth.xml client/digitallibrary/WEB-INF/digilib-config.xml client/digitallibrary/WEB-INF/web.xml
diffstat 3 files changed, 138 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/digitallibrary/WEB-INF/digilib-auth.xml	Thu Jan 17 15:29:52 2002 +0100
@@ -0,0 +1,27 @@
+<!--
+-->
+<auth-config>
+
+  <digilib-paths>
+    <!-- 
+      A user must supply one of the roles under "role"
+      to access the directory "name".
+      Roles under "role" must be separated by comma only (no spaces).  
+    -->
+    <path name="histast/eastwood-collection" role="eastwood-coll" />
+    <path name="ptolemaios_geo" role="ptolemaios-geo" />
+  </digilib-paths>
+
+  <digilib-addresses>
+    <!-- 
+      A computer with an ip address that matches "ip"
+      is automatically granted all roles under "role".
+      The ip address is matched from the left (in full quads).
+      Roles under "role" must be separated by comma only (no spaces). 
+    -->
+    <address ip="127" role="local" />
+    <address ip="130.92.68" role="eastwood-coll,ptolemaios-geo" />
+    <address ip="130.92.151" role="ALL" />
+  </digilib-addresses>
+
+</auth-config>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/digitallibrary/WEB-INF/digilib-config.xml	Thu Jan 17 15:29:52 2002 +0100
@@ -0,0 +1,28 @@
+<!-- Digilib servlet config file -->
+
+<digilib-config>
+  <parameter name="debug-level" value="0" />
+
+  <!--  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 first in list. -->
+  <parameter name="basedir-list" value="/docuserver/scaled/small:/docuserver/images:/docuserver/scans/quellen" />
+
+  <!-- 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="true" />
+
+  <!-- 	  URL location of XML file with authorization requirements. -->
+  <parameter name="auth-file" value="/docuserver/www/digitallibrary/WEB-INF/digilib-auth.xml" />
+
+  <!-- Part of URL to indicate authenticated access to Tomcat. -->
+  <parameter name="auth-url-path" value="authenticated/" />
+</digilib-config>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/digitallibrary/WEB-INF/web.xml	Thu Jan 17 15:29:52 2002 +0100
@@ -0,0 +1,83 @@
+<!DOCTYPE web-app 
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+
+    <!-- General description of your web application -->
+
+    <display-name>Docuserver</display-name>
+    <description>
+      This is the web frontend of Docuserver.
+    </description>
+
+
+    <servlet>
+      <servlet-name>Scaler</servlet-name>
+      <description>
+	The servlet to scale the digilib images.
+      </description>
+      <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>
+
+  <!-- We want to finger around with the default JSP servlet... -->
+  <servlet>
+    <servlet-name>doc-jsp</servlet-name>
+    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
+    <init-param>
+      <param-name>logVerbosityLevel</param-name>
+      <param-value>WARNING</param-value>
+    </init-param>
+      <!-- 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-on-startup>3</load-on-startup>
+  </servlet>
+
+
+  <!-- The mapping for the JSP servlet -->
+  <servlet-mapping>
+    <servlet-name>doc-jsp</servlet-name>
+    <url-pattern>*.jsp</url-pattern>
+  </servlet-mapping>
+
+
+  <!-- region for authenticated access -->
+    <security-constraint>
+      <web-resource-collection>
+        <web-resource-name>Authenticated Digilib</web-resource-name>
+	<url-pattern>/authenticated/*</url-pattern>
+      </web-resource-collection>
+      <auth-constraint>
+        <role-name>user</role-name>
+      </auth-constraint>
+   </security-constraint>
+
+    <login-config>
+<!--
+      <auth-method>BASIC</auth-method>
+      <realm-name>digilib</realm-name> 
+-->
+      <auth-method>FORM</auth-method>
+      <form-login-config>
+        <form-login-page>/digilib-login.html</form-login-page>
+	<form-error-page>/digilib-fail.html</form-error-page>
+      </form-login-config>
+
+    </login-config>
+
+</web-app>