com.sun.xml.ws.runtime.util
Class SessionManagerImpl

java.lang.Object
  extended by com.sun.xml.ws.runtime.util.SessionManager
      extended by com.sun.xml.ws.runtime.util.SessionManagerImpl

public class SessionManagerImpl
extends SessionManager

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 asa holder for user-defined data.
 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

SessionManagerImpl

public SessionManagerImpl()
Creates a new instance of SessionManagerImpl

Method Detail

getSession

public Session getSession(java.lang.String key)
Returns an existing session identified by the Key else null

Specified by:
getSession in class SessionManager
Parameters:
key - The Session key.

getKeys

public java.util.Set<java.lang.String> getKeys()
Returns the Set of valid Session keys.

Specified by:
getKeys in class SessionManager

terminateSession

public void terminateSession(java.lang.String key)
Removed the Session with the given key.

Specified by:
terminateSession in class SessionManager
Parameters:
key - The key of the Session to be removed.

createSession

public 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.

Specified by:
createSession in class SessionManager
Parameters:
key - The Session key to be used.

createSession

public 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.

Specified by:
createSession in class SessionManager
Parameters:
key - The Session key to be used.
obj - The object to use as a holder for user data in the session.

createSession

public 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.

Specified by:
createSession in class SessionManager
Parameters:
key - The Session key to be used.

saveSession

public void saveSession(java.lang.String key)
Does nothing in this implementation.

Specified by:
saveSession in class SessionManager
Parameters:
key - The key of the session to be saved

getSecurityContext

public com.sun.xml.ws.security.IssuedTokenContext getSecurityContext(java.lang.String key,
                                                                     boolean checkExpiry)
Return the valid SecurityContext for matching key

Specified by:
getSecurityContext in class SessionManager
Parameters:
key - The key of the security context to be looked

addSecurityContext

public void addSecurityContext(java.lang.String key,
                               com.sun.xml.ws.security.IssuedTokenContext itctx)
Add the SecurityContext with key in local cache

Specified by:
addSecurityContext in class SessionManager
Parameters:
key - The key of the security context to be stored
itctx - The IssuedTokenContext to be stored