# HG changeset patch # User robcast # Date 1062543484 -7200 # Node ID e4f095227510bbc787d5c730e0ff915b54da98ba # Parent 4980c969be4c255d8cb13722f7bb03e642a08267 Adapted to new DigilibConfig class. diff -r 4980c969be4c -r e4f095227510 client/digitallibrary/server/dlConfig.jsp --- a/client/digitallibrary/server/dlConfig.jsp Wed Sep 03 00:56:16 2003 +0200 +++ b/client/digitallibrary/server/dlConfig.jsp Wed Sep 03 00:58:04 2003 +0200 @@ -24,6 +24,8 @@ digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); // add number of pages dlRequest.setPt(docBean.getNumPages(dlRequest)); +// dir cache +digilib.io.DocuDirCache dirCache = (digilib.io.DocuDirCache) dlConfig.getValue("servlet.dir.cache"); %> @@ -92,47 +94,54 @@
ServletVersion | <%= dlConfig.getServletVersion() %> | +servlet.version | <%= dlConfig.getAsString("servlet.version") %> | |
AuthConfPath | <%= dlConfig.getAuthConfPath() %> | +servlet.config.file | <%= dlConfig.getAsString("servlet.config.file") %> | |
AuthURLPath | <%= dlConfig.getAuthURLPath() %> | +basedir-list | <%
+ String[] bd = (String[]) dlConfig.getValue("basedir-list");
+ if (bd != null) {
+ for (int i = 0; i < bd.length; i++) {
+ %><%= bd[i] %> <% + } + } + %> |
|
BaseDirs | <%= dlConfig.getBaseDirList() %> | -- | ||
DebugLevel | <%= dlConfig.getDebugLevel() %> (<%= dlConfig.getUtil().getDebugLevel() %>) | +debug-level | <%= dlConfig.getAsInt("debug-level") %> (<%= dlConfig.getUtil().getDebugLevel() %>) | |
DenyImgFileName | <%= dlConfig.getDenyImgFileName() %> | +docuimage-class | <%= dlConfig.getAsString("docuimage-class") %> | |
DLConfPath | <%= dlConfig.getDlConfPath() %> | +error-image | <%= dlConfig.getAsString("error-image") %> | ++ |
denied-image | <%= dlConfig.getAsString("denied-image") %> | |||
DocuImageType | <%= dlConfig.getDocuImageType() %> | +sendfile-allowed | <%= dlConfig.getAsBoolean("sendfile-allowed") %> | |
ErrorImgFileName | <%= dlConfig.getErrorImgFileName() %> | +use-authorization | <%= dlConfig.getAsBoolean("use-authorization") %> | |
SendFileAllowed | <%= dlConfig.isSendFileAllowed() %> | +auth-config | <%= dlConfig.getAsString("auth-file") %> | |
UseAuthentication | <%= dlConfig.isUseAuthentication() %> | +auth-url-path | <%= dlConfig.getAsString("auth-url-path") %> |
size (directories) | <%= dlConfig.getDirCache().size() %> | +size (directories) | <%= dirCache.size() %> | |
numFiles | <%= dlConfig.getDirCache().getNumFiles() %> | +numFiles | <%= dirCache.getNumFiles() %> | |
hits | <%= dlConfig.getDirCache().getHits() %> | +hits | <%= dirCache.getHits() %> | |
misses | <%= dlConfig.getDirCache().getMisses() %> | +misses | <%= dirCache.getMisses() %> |