at.spardat.xma.rpc
Class RemoteCallClient
java.lang.Object
at.spardat.xma.rpc.RemoteOperation
at.spardat.xma.rpc.RemoteCall
at.spardat.xma.rpc.RemoteCallClient
- public class RemoteCallClient
- extends RemoteCall
Used to construct a RemoteCall at the client side of XMA.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.