|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.runtime.util.SessionManager
com.sun.xml.ws.runtime.util.SessionManagerImpl
public class SessionManagerImpl
In memory implementation of SessionManager
Constructor Summary | |
---|---|
SessionManagerImpl()
Creates a new instance of SessionManagerImpl |
Method Summary | |
---|---|
void |
addSecurityContext(java.lang.String key,
com.sun.xml.ws.security.IssuedTokenContext itctx)
Add the SecurityContext with key in local cache |
Session |
createSession(java.lang.String key)
Creates a Session with the given key, using an instance of java.util.Hashtable |
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. |
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. |
java.util.Set<java.lang.String> |
getKeys()
Returns the Set of valid Session keys. |
com.sun.xml.ws.security.IssuedTokenContext |
getSecurityContext(java.lang.String key,
boolean checkExpiry)
Return the valid SecurityContext for matching key |
Session |
getSession(java.lang.String key)
Returns an existing session identified by the Key else null |
void |
saveSession(java.lang.String key)
Does nothing in this implementation. |
void |
terminateSession(java.lang.String key)
Removed the Session with the given key. |
Methods inherited from class com.sun.xml.ws.runtime.util.SessionManager |
---|
getSessionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManagerImpl()
Method Detail |
---|
public Session getSession(java.lang.String key)
getSession
in class SessionManager
key
- The Session key.public java.util.Set<java.lang.String> getKeys()
getKeys
in class SessionManager
public void terminateSession(java.lang.String key)
terminateSession
in class SessionManager
key
- The key of the Session to be removed.public Session createSession(java.lang.String key, java.lang.Class clasz)
createSession
in class SessionManager
key
- The Session key to be used.public Session createSession(java.lang.String key, java.lang.Object obj)
createSession
in class SessionManager
key
- The Session key to be used.obj
- The object to use as a holder for user data in the session.public Session createSession(java.lang.String key)
createSession
in class SessionManager
key
- The Session key to be used.public void saveSession(java.lang.String key)
saveSession
in class SessionManager
key
- The key of the session to be savedpublic com.sun.xml.ws.security.IssuedTokenContext getSecurityContext(java.lang.String key, boolean checkExpiry)
getSecurityContext
in class SessionManager
key
- The key of the security context to be lookedpublic void addSecurityContext(java.lang.String key, com.sun.xml.ws.security.IssuedTokenContext itctx)
addSecurityContext
in class SessionManager
key
- The key of the security context to be storeditctx
- The IssuedTokenContext to be stored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |