public class RpcRequestParams
extends java.lang.Object
J2SE Example:
//The Rpc Context
//The Rpc to call
//Construct the request object
//clear the params
//Set the params
//Execute the Rpc and get the response
//Work with the response ...
// request and response objects
RpcRequest vReq = null;
RpcResponse vResp = null;
String rpcContext = "XOBV VISTALINK TESTER";
String rpcName = "XOBV TEST STRING";
vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName);
vReq.clearParams();
vReq.getParams(). setParam(1, "string", "This is a test string!");
vResp = myConnection.executeRPC(vReq);
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the parameters.
|
java.lang.Object |
getParam(int position)
Gets the value for a parameter associated with a specified position in the parameters collection.
|
void |
setParam(int position,
java.lang.String type,
java.lang.Object value)
Sets a parameter needed by for a M RPC call.
|
public void clear()
public java.lang.Object getParam(int position)
position
- parameter position the M RPC expects this parameterpublic void setParam(int position, java.lang.String type, java.lang.Object value)
The position argument is the parameter list position where the RPC expects to see this argument.
The type argument indicates to VistALink how the argument should be processed on the M VistA server.
Possible values are the following:
position
- parameter position the M RPC expects this parametertype
- type of parameter corresponding to valid M RPC typesvalue
- value of parameterVistALink v1.6a