|
VLJ Iteration II, v. 1.0.0.193 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.va.med.foundations.rpc.RpcRequestParams
Represents the the collection of parameters associated with an RPC.
J2SE Example
// create the callback handler CallbackHandlerSwing cbhSwing = new CallbackHandlerSwing(myFrame); // create the LoginContext loginContext = new LoginContext("Production", cbhSwing); // login to server loginContext.login(); //Gets the principal that contains the VistaLinkConnection VistaKernelPrincipalImpl myPrincipal = VistaKernelPrincipalImpl. getKernelPrincipal(loginContext.getSubject()); //Get the VistaLinkConnection VistaLinkConnection myConnection = myPrincipal.getAuthenticatedConnection(); //request and response objects RpcRequest vReq = null; RpcResponse vResp = null; //The Rpc Context String rpcContext = "XOBV VISTALINK TESTER"; //The Rpc to call String rpcName = "XOBV TEST STRING"; //Construct the request object vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName); //clear the params vReq.clearParams(); //Set the params vReq.getParams(). setParam(1, "string", "This is a test string!"); //Execute the Rpc and get the respnse vResp = myConnection.executeRPC(vReq); //Work with the response ...
Method Summary | |
java.lang.Object |
getParam(int position)
Method getParam. |
void |
setParam(int position,
java.lang.String type,
java.lang.Object value)
Method setParam. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
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)
position
- parameter position the M RPC expects this parametertype
- type of parameter corresponding to valid M RPC typesvalue
- value of parameter
|
VLJ Iteration II, v. 1.0.0.193 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |