public class RpcRequestParams extends 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 | Constructor and Description |
|---|---|
protected |
RpcRequestParams()
Constructs the Rpc Params.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the parameters.
|
Object |
getParam(int position)
Gets the value for a parameter associated with a specified position in the parameters collection.
|
protected HashMap |
getParams()
Returns the params node.
|
void |
setParam(int position,
String type,
Object value)
Sets a parameter needed by for a M RPC call.
|
protected HashMap getParams()
public void clear()
public Object getParam(int position)
position - parameter position the M RPC expects this parameterpublic void setParam(int position,
String type,
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 parameterCopyright © 2026. All rights reserved.