|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.server.AbstractSessionManager
com.sibvisions.rad.server.DefaultSessionManager
public class DefaultSessionManager
The DefaultSessionManager
handles the access to all sessions
created through client connections.
Constructor Summary | |
---|---|
protected |
DefaultSessionManager(Server pServer)
Creates an instance of DefaultSessionManager for a special
communication server. |
Method Summary | |
---|---|
void |
addSessionListener(ISessionListener pListener)
Adds an ISessionListener session listener to the list of known listeners. |
protected ISecurityManager |
createSecurityManager(ISession pSession)
Creates a new security manager instance for the given session. |
Object |
createSession(IRequest pRequest,
ISerializer pSerializer,
ChangedHashtable<String,Object> pProperties)
Creates an authenticated session for an application. |
Object |
createSubSession(IRequest pRequest,
AbstractSession pSession,
ChangedHashtable<String,Object> pProperties)
Creates a new SubSession for an already authenticated main session. |
void |
destroy(Object pSessionId)
Destroyes a session and dependent sub sessions. |
AbstractSession |
get(Object pSessionId)
Gets an existing session. |
ISessionListener[] |
getSessionListeners()
Gets the list of known listeners. |
boolean |
isAvailable(ISession pSession)
Gets whether a session is known from this session manager. |
protected void |
postCreateSession(ISession pSession)
Configures a session after it is created. |
protected void |
postCreateSubSession(ISession pMaster,
ISession pSession)
Configures a sub session after it is created. |
void |
removeSessionListener(ISessionListener pListener)
Removes an ISessionListener from the list of known listeners. |
Methods inherited from class javax.rad.server.AbstractSessionManager |
---|
getServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultSessionManager(Server pServer)
DefaultSessionManager
for a special
communication server.
pServer
- communication serverMethod Detail |
---|
public final AbstractSession get(Object pSessionId)
get
in class AbstractSessionManager
pSessionId
- session identifier
public final void addSessionListener(ISessionListener pListener)
ISessionListener
session listener to the list of known listeners.
addSessionListener
in class AbstractSessionManager
pListener
- te session listener to addpublic final void removeSessionListener(ISessionListener pListener)
ISessionListener
from the list of known listeners.
removeSessionListener
in class AbstractSessionManager
pListener
- the session listener to removepublic final ISessionListener[] getSessionListeners()
getSessionListeners
in class AbstractSessionManager
ISessionListener
or an empty listpublic final Object createSession(IRequest pRequest, ISerializer pSerializer, ChangedHashtable<String,Object> pProperties) throws Throwable
pRequest
- the request which creates the sessionpSerializer
- the serializer for the sessionpProperties
- the initial session properties
Session
Throwable
- if the security manager detects a problem or the session properties can not be setpublic final Object createSubSession(IRequest pRequest, AbstractSession pSession, ChangedHashtable<String,Object> pProperties) throws Throwable
SubSession
for an already authenticated main session.
This method doesn't check if the session is valid.
pRequest
- the request which creates the sub sessionpSession
- a valid sessionpProperties
- the initial session properties
SubSession
Throwable
- the session properties can not be setpublic final void destroy(Object pSessionId)
pSessionId
- session identifier
SecurityException
- if the session identifier is unknownprotected ISecurityManager createSecurityManager(ISession pSession) throws Exception
pSession
- the session which needs a security manager
Exception
- if the class or default constructor was not foundprotected void postCreateSession(ISession pSession)
pSession
- the sessionprotected void postCreateSubSession(ISession pMaster, ISession pSession)
pMaster
- the master sessionpSession
- the sessionpublic boolean isAvailable(ISession pSession)
pSession
- the session to check
true
if the session is available, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |