|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.commons.AbstractMOMRegistrationAware
com.sun.xml.ws.runtime.dev.SessionManager
com.sun.xml.ws.runtime.dev.SessionManagerImpl
public class SessionManagerImpl
In memory implementation of SessionManager
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.ws.runtime.dev.SessionManager |
|---|
SESSION_THRESHOLD, TIMEOUT_INTERVAL |
| Constructor Summary | |
|---|---|
SessionManagerImpl(WSEndpoint endpoint,
boolean isSC)
Creates a new instance of SessionManagerImpl |
|
SessionManagerImpl(WSEndpoint endpoint,
boolean isSC,
Properties config)
Creates a new instance of SessionManagerImpl |
|
| Method Summary | |
|---|---|
void |
addSecurityContext(String key,
IssuedTokenContext itctx)
Add the SecurityContext with key in local cache |
Session |
createSession(String key)
Creates a Session with the given key, using an instance of synchronized java.util.Map |
Session |
createSession(String key,
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(String key,
Object obj)
Creates a Session with the given key, using the specified Object as a holder for user-defined data. |
Session |
createSession(String key,
SecurityContextTokenInfo sctInfo)
|
IssuedTokenContext |
getSecurityContext(String key,
boolean checkExpiry)
Return the valid SecurityContext for matching key |
Session |
getSession(String key)
Returns an existing session identified by the Key else null |
Set<String> |
keys()
Returns the Set of valid Session keys. |
void |
saveSession(String key)
Does nothing in this implementation. |
protected Collection<Session> |
sessions()
|
void |
terminateSession(String key)
Removed the Session with the given key. |
| Methods inherited from class com.sun.xml.ws.runtime.dev.SessionManager |
|---|
getConfig, getSessionManager, getSessionManager, removeSessionManager, setConfig |
| Methods inherited from class com.sun.xml.ws.commons.AbstractMOMRegistrationAware |
|---|
isRegisteredAtMOM, setRegisteredAtMOM |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionManagerImpl(WSEndpoint endpoint,
boolean isSC)
public SessionManagerImpl(WSEndpoint endpoint,
boolean isSC,
Properties config)
| Method Detail |
|---|
public Session getSession(String key)
getSession in class SessionManagerkey - The Session key.public Set<String> keys()
keys in class SessionManagerprotected Collection<Session> sessions()
sessions in class SessionManagerpublic void terminateSession(String key)
terminateSession in class SessionManagerkey - The key of the Session to be removed.
public Session createSession(String key,
Class clasz)
createSession in class SessionManagerkey - The Session key to be used.
public Session createSession(String key,
Object obj)
createSession in class SessionManagerkey - The Session key to be used.obj - The object to use as a holder for user data in the session.
public Session createSession(String key,
SecurityContextTokenInfo sctInfo)
createSession in class SessionManagerpublic Session createSession(String key)
createSession in class SessionManagerkey - The Session key to be used.public void saveSession(String key)
saveSession in class SessionManagerkey - The key of the session to be saved
public IssuedTokenContext getSecurityContext(String key,
boolean checkExpiry)
getSecurityContext in class SessionManagerkey - The key of the security context to be looked
public void addSecurityContext(String key,
IssuedTokenContext itctx)
addSecurityContext in class SessionManagerkey - 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 | |||||||||