| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.server.object.ExchangeSession
public class ExchangeSession
The ExchangeSession is a session bound connection. It can be used to direct 
 call methods and actions from the bound server-side session.
 The ExchangeSession can be used for accessing the session from outside
 the server, e.g. a servlet.
 Example for servlet usage:
 public void Object generateKey()
 {
   return ObjectCache.put(new ExchangeSession());
 }
 
 servlet code:
 
 public void doGet(HttpServletRequest pRequest, HttpServletResponse pResponse) throws ServletException
 {
   ObjectCache.get(pRequest.getParameter("KEY"));
 }
 
| Constructor Summary | |
|---|---|
| ExchangeSession()Creates a new instance of ExchangeSession. | |
| Method Summary | |
|---|---|
|  Object | call(String pObjectName,
     String pMethod)The method will call a method from the bound session. | 
|  Object | call(String pObjectName,
     String pMethod,
     Object... pParams)The method will call a method from the bound session. | 
|  Object | callAction(String pAction)The method will call an action from the bound session. | 
|  Object | callAction(String pAction,
           Object... pParams)The method will call an action from the bound session. | 
|  Object | getProperty(String pName)Gets the value of a session property. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ExchangeSession()
ExchangeSession. The instance will be bound to a server-side
 session. All method and action calls will be made through the bound session.
| Method Detail | 
|---|
public Object call(String pObjectName,
                   String pMethod,
                   Object... pParams)
            throws Throwable
pObjectName - an already mapped server object name/aliaspMethod - method name which should be calledpParams - parameters for the method call
Throwable - communication error, security checks, invalid method, ...
public Object call(String pObjectName,
                   String pMethod)
            throws Throwable
pObjectName - an already mapped server object name/aliaspMethod - method name which should be called
Throwable - communication error, security checks, invalid method, ...
public Object callAction(String pAction)
                  throws Throwable
pAction - action which should be called
Throwable - communication error, security checks, invalid action, ...
public Object callAction(String pAction,
                         Object... pParams)
                  throws Throwable
pAction - action which should be calledpParams - parameters for the action call
Throwable - communication error, security checks, invalid method, ...
public Object getProperty(String pName)
                   throws Throwable
pName - the property name
null if the property is not available
Throwable - communication error, security checks, invalid method, ...| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||