at.spardat.xma.rpc
Class RemoteCallClient

java.lang.Object
  extended byat.spardat.xma.rpc.RemoteOperation
      extended byat.spardat.xma.rpc.RemoteCall
          extended byat.spardat.xma.rpc.RemoteCallClient

public class RemoteCallClient
extends RemoteCall

Used to construct a RemoteCall at the client side of XMA.


Field Summary
 
Fields inherited from class at.spardat.xma.rpc.RemoteCall
data_
 
Constructor Summary
RemoteCallClient(ComponentClient issuer, java.lang.String eventName)
          Constructs a RemoteCall object
RemoteCallClient(PageClient issuer, java.lang.String eventName)
          Constructs a RemoteCall object where the issuer is a page
 
Method Summary
 RemoteReply execute()
          Executes this RemoteCall.
 void setNeedEncryption(boolean needEncryption)
          Determines if data has to be send encrypted.
 
Methods inherited from class at.spardat.xma.rpc.RemoteCall
getCallData, getEventName, getLastClientMeasurement, getParameter, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCallClient

public RemoteCallClient(ComponentClient issuer,
                        java.lang.String eventName)
Constructs a RemoteCall object

Parameters:
issuer - the client component that wants to execute this remote call.
eventName - the name of the event at the server side that should be executed.
Throws:
java.lang.IllegalArgumentException - if any argument is null or eventName is empty.

RemoteCallClient

public RemoteCallClient(PageClient issuer,
                        java.lang.String eventName)
Constructs a RemoteCall object where the issuer is a page

Parameters:
issuer - the client page that wants to execute this remote call.
eventName - the name of the event at the server side that should be executed.
Throws:
java.lang.IllegalArgumentException - if any argument is null or eventName is empty.
Method Detail

execute

public RemoteReply execute()
                    throws at.spardat.enterprise.exc.BaseException
Executes this RemoteCall. The call is made to the server, the server side event method is executed.

Overrides:
execute in class RemoteCall
Returns:
A RemoteReply object optionally holding parameters you have set at the server side.
Throws:
at.spardat.enterprise.exc.BaseException - all exceptions from the server side event method are packed into BaseExceptions and thrown again here. If the server side event method already throws an BaseException, is is not wrapped in an BaseException again.

setNeedEncryption

public void setNeedEncryption(boolean needEncryption)
Determines if data has to be send encrypted.

Parameters:
needEncryption - if true https will be used for transport.