public class RpcRequestFactory
extends java.lang.Object
implements gov.va.med.vistalink.adapter.record.VistaLinkRequestFactory
J2SE Example:
//The Rpc Context
//The Rpc to call
//Construct the request object
//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 PING";
vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName);
vResp = myConnection.executeRPC(vReq);
Constructor and Description |
---|
RpcRequestFactory() |
Modifier and Type | Method and Description |
---|---|
static RpcRequest |
getRpcRequest()
Creates a RpcRequest with a null RpcContext and RpcName
|
static RpcRequest |
getRpcRequest(java.lang.String rpcContext)
Creates a RpcRequest with the specified RpcContext and a null RpcName.
|
static RpcRequest |
getRpcRequest(java.lang.String rpcContext,
java.lang.String rpcName)
Creates appropriate rpc request object to be passed into the connection.
|
public static RpcRequest getRpcRequest() throws FoundationsException
FoundationsException
public static RpcRequest getRpcRequest(java.lang.String rpcContext) throws FoundationsException
rpcContext
- FoundationsException
public static RpcRequest getRpcRequest(java.lang.String rpcContext, java.lang.String rpcName) throws FoundationsException
rpcContext
- rpcName
- FoundationsException
VistALink v1.6a