|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.vistalink.rpc.RpcRequestParams
Represents the collection of parameters associated with an RPC.
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);
Method Summary | |
void |
clear()
|
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void clear()
public java.lang.Object getParam(int position)
position
- parameter position the M RPC expects this parameter
public 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 parameter
|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |