org.xulux.api.core
Interface ISession


public interface ISession

The session interface.

Version:
$Id: $
Author:
Martin van den Bemt

Method Summary
 void clear()
          Clears all values in the session
 java.lang.Object getValue(java.lang.Object key)
          gets a session value
 java.lang.Object remove(java.lang.Object key)
          Removes the object from the session and returns the removed value
 void setValue(java.lang.Object key, java.lang.Object value)
          Sets a session value if either of the parameters are null the value will not be stored
 

Method Detail

clear

void clear()
Clears all values in the session


remove

java.lang.Object remove(java.lang.Object key)
Removes the object from the session and returns the removed value

Parameters:
key - the object to remove from the session
Returns:
null if the object was not in the session

setValue

void setValue(java.lang.Object key,
              java.lang.Object value)
Sets a session value if either of the parameters are null the value will not be stored

Parameters:
key - the object of the session value
value - the value of the session key

getValue

java.lang.Object getValue(java.lang.Object key)
gets a session value

Parameters:
key - the value to get
Returns:
null if not found, the stored object otherwise


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.