|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.server.Server
public class Server
The Server is the general remote server implementation.
It's independent of the communication protocol and handles client requests.
server.xmlfile. It contains the database connect information.
| Constructor Summary | |
|---|---|
Server()
Creates a new Server instance. |
|
| Method Summary | |
|---|---|
Object |
createSession(ChangedHashtable<String,Object> pProperties)
Creates a new session for an application. |
Object |
createSubSession(Object pSessionId,
ChangedHashtable<String,Object> pProperties)
Creates a sub session of an application. |
void |
destroySession(Object pSessionId)
Destroyes a session of an application. |
Object |
execute(Object pSessionId,
String pObjectName,
String pMethod,
Object... pParams)
Executes a method call. |
Object |
executeAction(Object pSessionId,
String pAction,
Object... pParams)
Executes an action call. |
void |
executeActionCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pAction,
Object... pParams)
Executes an asynchronous action call. |
void |
executeActionCallBack(Object pSessionId,
Object pCallBackId,
String pAction,
Object... pParams)
Executes an asynchronous action call. |
void |
executeCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pObjectName,
String pMethod,
Object... pParams)
Executes an asynchronous method call. |
void |
executeCallBack(Object pSessionId,
Object pCallBackId,
String pObjectName,
String pMethod,
Object... pParams)
Executes an asynchronous method call. |
List<ResultObject> |
getCallBackResults(Object pSessionId)
Returns all available objects of an asynchronous execution. |
static Server |
getInstance()
Gets the current server instance as singleton. |
Monitoring |
getMonitoring()
Returns the monitoring object for this server. |
AbstractObjectProvider |
getObjectProvider()
Gets the AbstractObjectProvider. |
ChangedHashtable<String,Object> |
getProperties(Object pSessionId)
Gets all session properties. |
Object |
getProperty(Object pSessionId,
String pName)
Gets the value of a session property. |
DefaultSessionManager |
getSessionManager()
Gets the AbstractSessionManager. |
ISession |
process(IRequest pRequest,
IResponse pResponse)
Processes client requests which uses the communication protocol. |
Object[] |
setAndCheckAlive(Object pSessionId,
Object... pSubSessionId)
Sets the alive state for a session and validates the alive state of sub sessions. |
void |
setNewPassword(Object pSessionId,
String pOldPassword,
String pNewPassword)
Sets a new password for the user of a session. |
void |
setProperty(Object pSessionId,
String pName,
Object pValue)
Sets a session property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Server()
Server instance.
| Method Detail |
|---|
public static Server getInstance()
public final DefaultSessionManager getSessionManager()
AbstractSessionManager.
getSessionManager in interface IServerpublic final AbstractObjectProvider getObjectProvider()
AbstractObjectProvider.
getObjectProvider in interface IServer
public Object createSession(ChangedHashtable<String,Object> pProperties)
throws Throwable
createSession in interface IServerpProperties - the initial session properties
Session
Throwable - if the session can not be created
public Object createSubSession(Object pSessionId,
ChangedHashtable<String,Object> pProperties)
throws Throwable
createSubSession in interface IServerpSessionId - session identifierpProperties - the initial session properties
SubSession
Throwable - if the session can not be createdpublic void destroySession(Object pSessionId)
destroySession in interface IServerpSessionId - session identifier
public Object execute(Object pSessionId,
String pObjectName,
String pMethod,
Object... pParams)
throws Throwable
execute in interface IServerpSessionId - session identifierpObjectName - server object name/aliaspMethod - method name which should be calledpParams - parameters for the method call
Throwable - if an error occurs during execution
public void executeCallBack(Object pSessionId,
Object pCallBackId,
String pObjectName,
String pMethod,
Object... pParams)
throws Throwable
executeCallBack in interface IServerpSessionId - session identifierpCallBackId - the callback identifierpObjectName - server object name/aliaspMethod - method name which should be calledpParams - parameters for the method call
Throwable - if an error occurs during execution
public void executeCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pObjectName,
String pMethod,
Object... pParams)
throws Throwable
executeCallBack in interface IDirectServerpSessionId - session identifierpCallBackListener - the callback listenerpObjectName - server object name/aliaspMethod - method name which should be calledpParams - parameters for the method call
Throwable - if an error occurs during execution
public Object executeAction(Object pSessionId,
String pAction,
Object... pParams)
throws Throwable
executeAction in interface IServerpSessionId - session identifierpAction - action which should be calledpParams - parameters for the action call
Throwable - if an error occurs during execution
public void executeActionCallBack(Object pSessionId,
Object pCallBackId,
String pAction,
Object... pParams)
throws Throwable
executeActionCallBack in interface IServerpSessionId - session identifierpCallBackId - the callback identifierpAction - action which should be calledpParams - parameters for the action call
Throwable - if an error occurs during execution
public void executeActionCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pAction,
Object... pParams)
throws Throwable
executeActionCallBack in interface IDirectServerpSessionId - session identifierpCallBackListener - the callback listenerpAction - action which should be calledpParams - parameters for the action call
Throwable - if an error occurs during execution
public void setProperty(Object pSessionId,
String pName,
Object pValue)
throws Throwable
setProperty in interface IServerpSessionId - the session identifierpName - the property namepValue - the value of the property or null to delete the property
Throwable - if an error occurs during execution
public Object getProperty(Object pSessionId,
String pName)
throws Throwable
getProperty in interface IServerpSessionId - the session identifierpName - the property name
null if the property is not available
Throwable - if an error occurs during execution
public ChangedHashtable<String,Object> getProperties(Object pSessionId)
throws Throwable
getProperties in interface IServerpSessionId - the session identifier
ChangedHashtable with property names and values
Throwable - if an error occurs during execution
public List<ResultObject> getCallBackResults(Object pSessionId)
throws Throwable
getCallBackResults in interface IServerpSessionId - session identifier
Throwable - if an error occurs during execution
public Object[] setAndCheckAlive(Object pSessionId,
Object... pSubSessionId)
throws Throwable
setAndCheckAlive in interface IServerpSessionId - the session idpSubSessionId - the sub session ids
Throwable - if an error occurs during execution
public void setNewPassword(Object pSessionId,
String pOldPassword,
String pNewPassword)
throws Throwable
setNewPassword in interface IServerpSessionId - the session idpOldPassword - the old passwordpNewPassword - the new password
Throwable - if an error occurs during execution
public ISession process(IRequest pRequest,
IResponse pResponse)
throws Exception
pRequest - the requestpResponse - the response
null if the session is not available
Exception - if a problem occurs while accessing the in- or output streampublic final Monitoring getMonitoring()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||