public void put(String key, Object value) { change(); if (value == null) { put(key, null); } put(key, value + ""); }
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); } }
public void clear() { change(); data.clear(); }
public boolean remove(String key) { change(); return data.remove(key) != null; }