Source code: com/obinary/cms/beans/CacheInfo.java
1 /**
2 *
3 * Magnolia and its source-code is licensed under the LGPL.
4 * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5 * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6 * you are required to provide proper attribution to obinary.
7 * If you reproduce or distribute the document without making any substantive modifications to its content,
8 * please use the following attribution line:
9 *
10 * Copyright 1993-2003 obinary Ltd. (http://www.obinary.com) All rights reserved.
11 *
12 * */
13
14
15
16
17 package com.obinary.cms.beans;
18
19
20 import java.util.Hashtable;
21
22
23
24 /**
25 * User: sameercharles
26 * Date: Jul 16, 2003
27 * Time: 11:24:23 AM
28 * @author Sameer Charles
29 * @version 1.0
30 */
31
32
33 public class CacheInfo {
34
35
36 public static Hashtable cachedURIList = new Hashtable();
37
38
39
40 /**
41 *
42 *
43 */
44 public static boolean isCached(String URI) {
45 return (CacheInfo.cachedURIList.get(URI) != null);
46 }
47
48
49
50 /**
51 *
52 *
53 */
54 public static void addToCachedURIList(String URI) {
55 CacheInfo.cachedURIList.put(URI,"");
56 }
57
58
59
60 /**
61 *
62 *
63 */
64 public static void removeFromCachedURIList(String URI) {
65 CacheInfo.cachedURIList.remove(URI);
66 }
67
68
69
70 }