|
||||||||||
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 IServer
public final AbstractObjectProvider getObjectProvider()
AbstractObjectProvider
.
getObjectProvider
in interface IServer
public Object createSession(ChangedHashtable<String,Object> pProperties) throws Throwable
createSession
in interface IServer
pProperties
- the initial session properties
Session
Throwable
- if the session can not be createdpublic Object createSubSession(Object pSessionId, ChangedHashtable<String,Object> pProperties) throws Throwable
createSubSession
in interface IServer
pSessionId
- session identifierpProperties
- the initial session properties
SubSession
Throwable
- if the session can not be createdpublic void destroySession(Object pSessionId)
destroySession
in interface IServer
pSessionId
- session identifierpublic Object execute(Object pSessionId, String pObjectName, String pMethod, Object... pParams) throws Throwable
execute
in interface IServer
pSessionId
- session identifierpObjectName
- server object name/aliaspMethod
- method name which should be calledpParams
- parameters for the method call
Throwable
- if an error occurs during executionpublic void executeCallBack(Object pSessionId, Object pCallBackId, String pObjectName, String pMethod, Object... pParams) throws Throwable
executeCallBack
in interface IServer
pSessionId
- 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 executionpublic void executeCallBack(Object pSessionId, ICallBackListener pCallBackListener, String pObjectName, String pMethod, Object... pParams) throws Throwable
executeCallBack
in interface IDirectServer
pSessionId
- 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 executionpublic Object executeAction(Object pSessionId, String pAction, Object... pParams) throws Throwable
executeAction
in interface IServer
pSessionId
- session identifierpAction
- action which should be calledpParams
- parameters for the action call
Throwable
- if an error occurs during executionpublic void executeActionCallBack(Object pSessionId, Object pCallBackId, String pAction, Object... pParams) throws Throwable
executeActionCallBack
in interface IServer
pSessionId
- session identifierpCallBackId
- the callback identifierpAction
- action which should be calledpParams
- parameters for the action call
Throwable
- if an error occurs during executionpublic void executeActionCallBack(Object pSessionId, ICallBackListener pCallBackListener, String pAction, Object... pParams) throws Throwable
executeActionCallBack
in interface IDirectServer
pSessionId
- session identifierpCallBackListener
- the callback listenerpAction
- action which should be calledpParams
- parameters for the action call
Throwable
- if an error occurs during executionpublic void setProperty(Object pSessionId, String pName, Object pValue) throws Throwable
setProperty
in interface IServer
pSessionId
- the session identifierpName
- the property namepValue
- the value of the property or null
to delete the property
Throwable
- if an error occurs during executionpublic Object getProperty(Object pSessionId, String pName) throws Throwable
getProperty
in interface IServer
pSessionId
- the session identifierpName
- the property name
null
if the property is not available
Throwable
- if an error occurs during executionpublic ChangedHashtable<String,Object> getProperties(Object pSessionId) throws Throwable
getProperties
in interface IServer
pSessionId
- the session identifier
ChangedHashtable
with property names and values
Throwable
- if an error occurs during executionpublic List<ResultObject> getCallBackResults(Object pSessionId) throws Throwable
getCallBackResults
in interface IServer
pSessionId
- session identifier
Throwable
- if an error occurs during executionpublic Object[] setAndCheckAlive(Object pSessionId, Object... pSubSessionId) throws Throwable
setAndCheckAlive
in interface IServer
pSessionId
- the session idpSubSessionId
- the sub session ids
Throwable
- if an error occurs during executionpublic void setNewPassword(Object pSessionId, String pOldPassword, String pNewPassword) throws Throwable
setNewPassword
in interface IServer
pSessionId
- the session idpOldPassword
- the old passwordpNewPassword
- the new password
Throwable
- if an error occurs during executionpublic 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 |