/** * @deprecated as of JSDK 2.2, use removeAttribute **/ public void removeValue( String name ) { removeAttribute( name ); }
/** * @deprecated as of JSDK 2.2, use removeAttribute **/ public void removeValue( String name ) { removeAttribute( name ); }
/** * @deprecated as of JSDK 2.2, use removeAttribute **/ public void removeValue( String name ) { removeAttribute( name ); }
/** * Binds an object to this session, using the name specified. If an object of the same name * is already bound to the session, the object is replaced. **/ public void setAttribute( String name, Object value ) { if (_invalid) throw new IllegalStateException(); if (value == null) { removeAttribute( name ); } else if (!_values.containsKey( name )) { _values.put( name, value ); _listenerDispatcher.sendAttributeAdded( this, name, value ); } else { Object oldValue = _values.get( name ); _values.put( name, value ); _listenerDispatcher.sendAttributeReplaced( this, name, oldValue ); } }
/** * Binds an object to this session, using the name specified. If an object of the same name * is already bound to the session, the object is replaced. **/ public void setAttribute( String name, Object value ) { if (_invalid) throw new IllegalStateException(); if (value == null) { removeAttribute( name ); } else if (!_values.containsKey( name )) { _values.put( name, value ); _listenerDispatcher.sendAttributeAdded( this, name, value ); } else { Object oldValue = _values.get( name ); _values.put( name, value ); _listenerDispatcher.sendAttributeReplaced( this, name, oldValue ); } }
/** * Binds an object to this session, using the name specified. If an object of the same name * is already bound to the session, the object is replaced. **/ public void setAttribute( String name, Object value ) { if (_invalid) throw new IllegalStateException(); if (value == null) { removeAttribute( name ); } else if (!_values.containsKey( name )) { _values.put( name, value ); _listenerDispatcher.sendAttributeAdded( this, name, value ); } else { Object oldValue = _values.get( name ); _values.put( name, value ); _listenerDispatcher.sendAttributeReplaced( this, name, oldValue ); } }