Mercurial > hg > digilib-old
comparison servlet/src/digilib/auth/XMLAuthOps.java @ 269:6e6bf5aa7ad2
Servlet version 1.21b3
- searching in directories got faster (real binarySearch now!)
- cached file lists get disposed
- some code cleaning (Map types instead of HashMap)
author | robcast |
---|---|
date | Tue, 12 Oct 2004 16:06:43 +0200 |
parents | beed92ee6022 |
children | e758a49258e8 |
comparison
equal
deleted
inserted
replaced
268:2c7747cc1838 | 269:6e6bf5aa7ad2 |
---|---|
19 */ | 19 */ |
20 | 20 |
21 package digilib.auth; | 21 package digilib.auth; |
22 | 22 |
23 import java.io.File; | 23 import java.io.File; |
24 import java.util.HashMap; | |
25 import java.util.List; | 24 import java.util.List; |
25 import java.util.Map; | |
26 | 26 |
27 import javax.servlet.http.HttpServletRequest; | 27 import javax.servlet.http.HttpServletRequest; |
28 | 28 |
29 import digilib.io.XMLListLoader; | 29 import digilib.io.XMLListLoader; |
30 import digilib.servlet.DigilibRequest; | 30 import digilib.servlet.DigilibRequest; |
67 * | 67 * |
68 * @throws AuthOpException Exception thrown on error. | 68 * @throws AuthOpException Exception thrown on error. |
69 */ | 69 */ |
70 public void init() throws AuthOpException { | 70 public void init() throws AuthOpException { |
71 logger.debug("xmlauthops.init (" + configFile + ")"); | 71 logger.debug("xmlauthops.init (" + configFile + ")"); |
72 HashMap pathList = null; | 72 Map pathList = null; |
73 HashMap ipList = null; | 73 Map ipList = null; |
74 try { | 74 try { |
75 // load authPaths | 75 // load authPaths |
76 XMLListLoader pathLoader = | 76 XMLListLoader pathLoader = |
77 new XMLListLoader("digilib-paths", "path", "name", "role"); | 77 new XMLListLoader("digilib-paths", "path", "name", "role"); |
78 pathList = pathLoader.loadURL(configFile.toURL().toString()); | 78 pathList = pathLoader.loadURL(configFile.toURL().toString()); |