| java.lang.Object com.sun.xml.ws.runtime.util.SessionManager
All known Subclasses: com.sun.xml.ws.runtime.util.SessionManagerImpl,
SessionManager | abstract public class SessionManager (Code) | | The SessionManager is used to obtain session information
This can be implemented using persisitent storage mechanisms or using transient storage
Even if it is implemented using persistent storage the implementation should take care
of backing by a cache which will avoid the overhead of serialization and database
operations
Additonally the SessionManager is responsible for managing the lifecycle
events for the sessions. It exposes methods to create and terminate the session
Periodically the SessionManager will check for sessions who have been inactive for
a predefined amount of time and then will terminate those sessions
author: Bhakti Mehta author: Mike Grogan |
createSession | abstract public Session createSession(String key, Class clasz)(Code) | | Creates a Session with the given key, using a new instance
of the specified Class as a holder for user-defined data. The
specified Class must have a default ctor.
Parameters: key - The Session key to be used. |
createSession | abstract public Session createSession(String key, Object obj)(Code) | | Creates a Session with the given key, using the specified Object
as a holder for user-defined data.
Parameters: key - The Session key to be used. Parameters: obj - The object to use as a holder for user data in the session. |
createSession | abstract public Session createSession(String key)(Code) | | Creates a Session with the given key, using an instance of
java.util.Hashtable asa holder for user-defined data.
Parameters: key - The Session key to be used. |
getKeys | abstract public Set<String> getKeys()(Code) | | Returns the Set of valid Session keys.
|
getSession | abstract public Session getSession(String key)(Code) | | Returns an existing session identified by the Key else null
Parameters: key - The Session key. |
getSessionManager | public static SessionManager getSessionManager()(Code) | | Returns the single instance of SessionManager
Use the usual services mechanism to find implementing class. If not
found, use com.sun.xml.ws.runtime.util.SessionManager
by default.
The value of the manager field. |
saveSession | abstract public void saveSession(String key)(Code) | | Saves the state of the Session with the given key.
Parameters: key - The key of the session to be saved |
terminateSession | abstract public void terminateSession(String key)(Code) | | Removed the Session with the given key.
Parameters: key - The key of the Session to be removed. |
|
|