Methods Summary |
---|
public abstract Session | createSession(java.lang.String key, java.lang.Class clasz)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.
|
public abstract Session | createSession(java.lang.String key, java.lang.Object obj)Creates a Session with the given key, using the specified Object
as a holder for user-defined data.
|
public abstract Session | createSession(java.lang.String key)Creates a Session with the given key, using an instance of
java.util.Hashtable asa holder for user-defined data.
|
public abstract java.util.Set | getKeys()Returns the Set of valid Session keys.
|
public abstract Session | getSession(java.lang.String key)Returns an existing session identified by the Key else null
|
public static com.sun.xml.ws.runtime.util.SessionManager | getSessionManager()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.
synchronized (SessionManager.class) {
if (manager == null) {
ServiceFinder<SessionManager> finder =
ServiceFinder.find(SessionManager.class);
if (finder != null && finder.toArray().length > 0) {
manager = finder.toArray()[0];
} else {
manager = new SessionManagerImpl();
}
}
return manager;
}
|
public abstract void | saveSession(java.lang.String key)Saves the state of the Session with the given key.
|
public abstract void | terminateSession(java.lang.String key)Removed the Session with the given key.
|