public synchronized void removeAttribute(String name) { if (_invalid) throw new IllegalStateException(); if (_values==null) return; Object old=_values.remove(name); if (old!=null) { unbindValue(name,old); if (_sessionAttributeListeners!=null) { HttpSessionBindingEvent event=new HttpSessionBindingEvent(this,name,old); for (int i=0; i<LazyList.size(_sessionAttributeListeners); i++) ((HttpSessionAttributeListener)LazyList.get(_sessionAttributeListeners,i)).attributeRemoved(event); } } }
unbindValue(name,oldValue); bindValue(name,value);