|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.server.SessionContext
com.sibvisions.rad.server.AbstractSessionContext
public abstract class AbstractSessionContext
The AbstractSessionContext is a general SessionContext implementation.
| Constructor Summary | |
|---|---|
protected |
AbstractSessionContext(ISession pSession)
Creates a new instance of SessionContextImpl for a specific
ISession. |
| Method Summary | |
|---|---|
ICloseableSession |
createSubSession(String pLifeCycleName,
Map<String,Object> pProperties)
Creates a new sub session from the current master session. |
void |
destroy()
Destroyes any resources associated with this SessionContext instance. |
IAccessChecker |
getAccessChecker()
Gets the access checker of the current session, if available. |
ISession |
getMasterSession()
Gets the master ISession instance for this context. |
String |
getMethodName()
Gets the name of the method which will be called. |
InjectObject |
getObject(String pName)
Gets an already added inject object. |
String |
getObjectName()
Gets the name of the object from which a method will be called. |
IConfiguration |
getServerConfig()
Gets the server IConfiguration. |
IConnection |
getServerConnection()
Gets a connection to the server. |
ISession |
getSession()
Gets the ISession instance for this context. |
IConfiguration |
getSessionConfig()
Gets the IConfiguration for the session. |
InjectObject |
putObject(InjectObject pObject)
Puts an object to this SessionContext. |
InjectObject |
removeObject(InjectObject pObject)
Removes an inject object from this SessionContext. |
protected void |
setMethodName(String pMethodName)
Sets the name of the method which will be called. |
protected void |
setObjectName(String pObjectName)
Sets the name of the current object from which the method will be called. |
| Methods inherited from class javax.rad.server.SessionContext |
|---|
getCallBackBroker, getCallHandler, getCurrentInstance, getCurrentServerConfig, getCurrentSession, getCurrentSessionConfig, getNextContext, getPreviousContext, isReleased, publishCallBackResult, putObject, release, removeObject, setCurrentInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractSessionContext(ISession pSession)
SessionContextImpl for a specific
ISession.
pSession - the associated session for this SessionContext| Method Detail |
|---|
public void destroy()
destroy in class SessionContextpublic ISession getSession()
ISession instance for this context.
getSession in class SessionContextISession instancepublic ISession getMasterSession()
ISession instance for this context.
getMasterSession in class SessionContextISessionpublic IConfiguration getSessionConfig()
IConfiguration for the session.
getSessionConfig in class SessionContextIConfigurationpublic IConfiguration getServerConfig()
IConfiguration.
getServerConfig in class SessionContextIConfigurationpublic IConnection getServerConnection()
getServerConnection in class SessionContextpublic String getObjectName()
SessionContext
will be initialized through a method call with or without object name. The method call without
object name is known as action call.
getObjectName in class SessionContextnull if an action will be calledSessionContext.getMethodName()public String getMethodName()
getMethodName in class SessionContextpublic InjectObject putObject(InjectObject pObject)
SessionContext.
putObject in class SessionContextpObject - the inject object
null if the object was not knownpublic InjectObject removeObject(InjectObject pObject)
SessionContext.
removeObject in class SessionContextpObject - the inject object
null if the object was not putpublic InjectObject getObject(String pName)
getObject in class SessionContextpName - the object name
null if there is no object with the pName
public ICloseableSession createSubSession(String pLifeCycleName,
Map<String,Object> pProperties)
throws Throwable
ICloseable.close()
the session.
createSubSession in class SessionContextpLifeCycleName - the name of the life-cycle objectpProperties - the additional session properties
Throwable - if sub session creation failspublic IAccessChecker getAccessChecker()
getAccessChecker in class SessionContextnull if no access checker is availableprotected void setObjectName(String pObjectName)
pObjectName - the object name or null if the object is unknowngetObjectName()protected void setMethodName(String pMethodName)
pMethodName - the method name or null if the method is unknowngetMethodName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||