|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.util.AgrServerSession
Represents an established server session from a non-SilverStream application This class provides methods to login and out, invoke a business object, and to get session info.
A non-SilverStream application or applet must call one of the flavors of AgRuntime.init() before attempting to contact a SilverStream server. This performs basic initialization of the SilverStream runtime packages. Next, the application must get an "AgrServerSession" object for the SilverStream server it wishes to talk to; this establishes a SilverStream session with the server (including user authentication, if required), and starts the "client heartbeat" which keeps the session alive.
In addition,the application can create AgrData's to access any data source,
AgRuntime
,
AgrServerSession
,
AgrData
Constructor Summary | |
AgrServerSession()
|
Method Summary | |
void |
close()
Close the server session. |
String |
getHostName()
Return the "basic" host name for this connection. |
abstract Principal |
getRemoteUser()
Return an AgiUser representing the user currently logged into the remote session. |
String |
getServerHostName()
Return the "actual" host name for this connection. |
abstract int |
getServerNamingServicePort()
Return the Server naming service port number. |
int |
getServerPort()
Return the "actual" port number (HTTP or HTTPS) on which the server serving this session is listening. |
abstract String |
getServerRemoteMethodProtocol()
Return the protocol supported by the Server for remote client access. |
String |
getSessionId()
Get the session ID for this session. |
abstract Serializable |
invokeBusinessObject(String spec)
Invoke an invocable business object on the specified server in the specified session, and return its result. |
abstract Serializable |
invokeBusinessObject(String spec,
Serializable param)
Invoke an invocable business object on the specified server in the specified session, passing an argument, and return its result. |
abstract boolean |
isServerAlive(boolean force)
Return true if the server is alive, false otherwise. |
abstract boolean |
loginUser()
Allow a user to log on to the server. |
abstract void |
restart()
Re-establish the server session for this server, if it's been closed or stopped. |
abstract void |
suspend()
Suspend this server session. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AgrServerSession()
Method Detail |
public abstract boolean loginUser() throws AgoUnrecoverableSystemException, AgoSecurityException
public void close()
public abstract void suspend()
public abstract void restart() throws AgoUnrecoverableSystemException
public abstract Serializable invokeBusinessObject(String spec) throws Exception
spec
- a "full" business object specification on the server,
in the form "database:BOname". For example, "MyDB:com.sssw.objs.MyObj".public abstract Serializable invokeBusinessObject(String spec, Serializable param) throws Exception
spec
- a "full" business object specification on the server,
in the form "database:BOname". For example, "MyDB:com.sssw.objs.MyObj".param
- any Serializable parameter to be passed to the objectpublic String getSessionId()
public String getHostName()
public String getServerHostName()
public int getServerPort()
public abstract String getServerRemoteMethodProtocol() throws Exception
Current return values supported are:
public abstract int getServerNamingServicePort() throws Exception
public abstract Principal getRemoteUser() throws AgoUnrecoverableSystemException
public abstract boolean isServerAlive(boolean force) throws AgoUnrecoverableSystemException
force
- true to force an immediate ping of the server
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |