1 20 package org.enhydra.barracuda.plankton.data; 21 22 import java.io.*; 23 import java.util.*; 24 import javax.servlet.*; 25 import javax.servlet.http.*; 26 27 32 public class MapStateMap implements StateMap { 33 34 protected Map map = null; 36 37 42 public MapStateMap(Map imap) { 43 map = imap; 44 } 45 46 52 public void putState(Object key, Object val) { 53 map.put(key,val); 54 } 55 56 62 public Object getState(Object key) { 63 return map.get(key); 64 } 65 66 72 public Object removeState(Object key) { 73 return map.remove(key); 74 } 75 76 82 public List getStateKeys() { 83 return new ArrayList(map.keySet()); 84 } 85 86 93 public Map getStateValues() { 94 return map; 95 } 96 97 101 public void clearState() { 102 map.clear(); 103 } 104 105 } 106 | Popular Tags |