|
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 | +--VistaLinkRequestVOImpl | +--gov.va.med.foundations.rpc.RpcRequest
Represents a RPC request to an M VistA server.
This is the principal class of VLJ used by developers to create and setup
requests to the host M server.
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 PING"; //Construct the request object vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName); //Execute the Rpc and get the respnse vResp = myConnection.executeRPC(vReq); //Work with the response ...
Method Summary | |
void |
clearParams()
Method clearParams. |
gov.va.med.foundations.rpc.RpcRequestParams |
getParams()
Method getParams. |
java.lang.String |
getRequestString()
Gets the request string that will be used to make the request from M. |
int |
getRpcClientTimeOut()
Method getRpcClientTimeOut. |
java.lang.String |
getRpcContext()
Method getRpcContext. |
java.lang.String |
getRpcName()
Method getRpcName. |
boolean |
isUseProprietaryMessageFormat()
Deprecated. For internal testing only! |
boolean |
isXmlResponse()
Deprecated. This method will be removed after the REMOTE PROCEDURE (#8894) file adds an XML return type. |
void |
setParams(java.util.List list)
Method setParams. |
void |
setRpcClientTimeOut(int value)
Method setRpcClientTimeOut. |
void |
setRpcContext(java.lang.String value)
Method setRpcContext. |
void |
setRpcName(java.lang.String value)
Method setRpcName. |
void |
setUseProprietaryMessageFormat(boolean useSink)
Method setUseProprietaryMessageFormat. |
void |
setXmlResponse(boolean value)
Deprecated. This method will be removed after the REMOTE PROCEDURE (#8894) file adds an XML return type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public gov.va.med.foundations.rpc.RpcRequestParams getParams()
RpcRequestParams
object
public void setParams(java.util.List list)
list
- public void clearParams()
public java.lang.String getRpcName()
public void setRpcName(java.lang.String value)
value
- public java.lang.String getRpcContext()
public void setRpcContext(java.lang.String value) throws FoundationsException
value
-
FoundationsException
public int getRpcClientTimeOut()
public void setRpcClientTimeOut(int value)
value
- public java.lang.String getRequestString() throws FoundationsException
FoundationsException
gov.va.med.foundations.adapter.record.VistaLinkRequestVO#getRequestString()
public boolean isXmlResponse()
public void setXmlResponse(boolean value)
value
- Whether XML is the expected type of result to be returned.public boolean isUseProprietaryMessageFormat()
public void setUseProprietaryMessageFormat(boolean useSink)
useSink
-
|
VLJ Iteration II, v. 1.0.0.193 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |