示例#1
0
 public void put(String key, Object value) {
   change();
   if (value == null) {
     put(key, null);
   }
   put(key, value + "");
 }
示例#2
0
 public void put(String key, String value) {
   if (key.contains(":")) {
     throw new IllegalArgumentException("Character ':' is invalid in a session key.");
   }
   change();
   if (value == null) {
     data.remove(key);
   } else {
     data.put(key, value);
   }
 }
示例#3
0
 public void clear() {
   change();
   data.clear();
 }
示例#4
0
 public boolean remove(String key) {
   change();
   return data.remove(key) != null;
 }