VistALink v1.5.0.026

gov.va.med.vistalink.rpc
Class RpcRequestFactory

java.lang.Object
  extended bygov.va.med.vistalink.rpc.RpcRequestFactory
All Implemented Interfaces:
gov.va.med.vistalink.adapter.record.VistaLinkRequestFactory

public class RpcRequestFactory
extends java.lang.Object
implements gov.va.med.vistalink.adapter.record.VistaLinkRequestFactory

Factory class to creates instances of RpcRequest

J2SE Example:

//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 PING";

//Construct the request object
vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName);

//Execute the Rpc and get the response
vResp = myConnection.executeRPC(vReq);

//Work with the response ...

Version:
1.5.0.026
Author:
Application Modernization - Foundations Team

Constructor Summary
RpcRequestFactory()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcRequestFactory

public RpcRequestFactory()
Method Detail

getRpcRequest

public static RpcRequest getRpcRequest()
                                throws FoundationsException
Creates a RpcRequest with a null RpcContext and RpcName

Returns:
RpcRequest
Throws:
FoundationsException

getRpcRequest

public static RpcRequest getRpcRequest(java.lang.String rpcContext)
                                throws FoundationsException
Creates a RpcRequest with the specified RpcContext and a null RpcName.

Parameters:
rpcContext -
Returns:
RpcRequest
Throws:
FoundationsException

getRpcRequest

public static RpcRequest getRpcRequest(java.lang.String rpcContext,
                                       java.lang.String rpcName)
                                throws FoundationsException
Creates appropriate rpc request object to be passed into the connection.

Parameters:
rpcContext -
rpcName -
Returns:
RpcRequest
Throws:
FoundationsException

VistALink v1.5.0.026

VistALink v1.5.0.026