1 package org.apache.turbine.services.pull.util; 2 3 18 19 import java.util.Map ; 20 import java.util.HashMap ; 21 import java.util.Iterator ; 22 23 import org.apache.turbine.services.pull.ApplicationTool; 24 25 34 public class SessionData implements ApplicationTool 35 { 36 37 private Map dataStorage; 38 39 44 public void init(Object data) 45 { 46 dataStorage = new HashMap (); 47 } 48 49 52 public void refresh() 53 { 54 } 56 57 66 public Object get(String key) 67 { 68 return dataStorage.get(key); 69 } 70 71 77 public boolean containsKey(String key) 78 { 79 return dataStorage.containsKey(key); 80 } 81 82 89 public void put(String key, Object value) 90 { 91 dataStorage.put(key, value); 92 } 93 94 97 public void clear() 98 { 99 dataStorage.clear(); 100 } 101 102 107 public Iterator iterator() 108 { 109 return dataStorage.keySet().iterator(); 110 } 111 } 112 | Popular Tags |