public void setAttribute(String name, Object value) { checkValid(); if (null == value) { removeAttribute(name); } else { Object oldValue = attributes.put(name, value); if (null != oldValue) { replacedInSession(name, oldValue, value); } else { boundToSession(name, value); } } }
public void invalidate() { checkValid(); destroy(); this.valid=false; }
public Object getValue(String name) { return getAttribute(name); }
private void unboundAttributes() { for (String name : getValueNames()) { removeAttribute(name); } }
public long getLastAccessedTime() { checkValid(); // TODO fix accessing time return 0; }
public void removeAttribute(String name) { checkValid(); Object removed = this.attributes.remove(name); if (null != removed) { removedFromSession(name, removed); } }
@Override public void invalidate() { super.invalidate(); setCurrentSession(null); } }
public void removeValue(String name) { removeAttribute(name); }
public void putValue(String name, Object value) { setAttribute(name, value); }
public long getLastAccessedTime() { checkValid(); // TODO fix accessing time return 0; }
public void removeAttribute(String name) { checkValid(); Object removed = this.attributes.remove(name); if (null != removed) { removedFromSession(name, removed); } }
private void unboundAttributes() { for (String name : getValueNames()) { removeAttribute(name); } }
@Override public void invalidate() { super.invalidate(); setCurrentSession(null); } }
public void removeValue(String name) { removeAttribute(name); }
public void putValue(String name, Object value) { setAttribute(name, value); }
public void setAttribute(String name, Object value) { checkValid(); if (null == value) { removeAttribute(name); } else { Object oldValue = attributes.put(name, value); if (null != oldValue) { replacedInSession(name, oldValue, value); } else { boundToSession(name, value); } } }
public boolean isNew() { checkValid(); return false; }
public void invalidate() { checkValid(); destroy(); this.valid=false; }
public Object getValue(String name) { return getAttribute(name); }
public boolean isNew() { checkValid(); return false; }