| java.lang.Object com.salmonllc.examples.SessionManager
SessionManager | public class SessionManager (Code) | | Used to manage values put on the session. This class mainly adds the APP_NAME to all keys added with it.
The class is not actually used in the application, but is here in case you want to use the sample application
as a starting point for your own application. Generally it isn't good practice to write to the session directly.
Instead implement get/set method in this class that do it for you. Then in your application always access the session
via the get and set methods in this class. It makes it much easier to trap errors related to storing items on the session.
|
getCurrentTime | public java.sql.Timestamp getCurrentTime()(Code) | | This method returns the current time with precision into milliseconds.
java.sql.Timestamp current time |
getValue | public Object getValue(String name)(Code) | | Gets a value off the session. Automatically using the APP_NAME in the key value.
java.lang.Object Parameters: name - java.lang.String |
putValue | public void putValue(String name, Object value)(Code) | | Puts a value on the session. Automatically using the APP_NAME in the key value.
Parameters: name - java.lang.String Parameters: value - java.lang.Object |
removeValue | public void removeValue(String name)(Code) | | Removes a value from the session. Automatically using the APP_NAME in the key value.
|
|
|