public class RpcResponseFactory extends VistaLinkResponseFactoryImpl
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CDATA_BEG
Represents the beginning of the CDATA section
|
protected static String |
CDATA_END_W_SUFFIX
Represents the end of the CDATA section w/ the SUFFIX from
VistaLinkResponseFactoryImpl
|
protected static String |
CDATA_END_WO_SUFFIX
Represents the end of the CDATA section wo/ the SUFFIX from
VistaLinkResponseFactoryImpl
|
protected static String |
COMMON_RESPONSE_VERSION
version string most commonly expected in VL messages from M side
|
protected static String |
ERROR_MSG_RPC
Represents the strings that identifies if a RPC fault has occurred
|
protected static String |
GOV_VA_MED_RPC_FAULT
Represents a rpc fault
|
protected static String |
GOV_VA_MED_RPC_RESPONSE
The message type used for this response
|
protected static String |
MOST_COMMON_ENDING |
protected static String |
MOST_COMMON_HEADER |
protected static String |
MOST_COMMON_MIDDLE |
ERROR_MSG_GEN, GOV_VA_MED_FOUNDATIONS_FAULT, SUFFIX, VISTALINK_ROOT_ELEMENT| Constructor and Description |
|---|
RpcResponseFactory()
Constructor for VistaRPCResponseFactory.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doesResponseIndicateFault(String rawXml)
Performs additional response XML string parsing to check if fault occured
|
protected String |
filterResponseXmlString(String rawXml,
boolean isFault)
Filters response XML string specific to RPC implementation.
|
VistaLinkResponseVO |
handleResponse(String response,
VistaLinkRequestVO requestVO)
Called by the managedConnection to parse the response String and return VistaLinkResponseVO implementation.
|
protected VistaLinkFaultException |
handleSpecificFault(Document xdoc,
String messageType,
VistaLinkFaultException faultException)
Perform RPC specific fault handling and creation of RPC specific
FaultExceptions.
|
protected VistaLinkResponseVO |
parseMessageBody(String rawXml,
String filteredXml,
Document doc,
String messageType,
VistaLinkRequestVO requestVO)
RPC specific method to parse response XML string message body and to
create RpcResponse object with appropriate data.
|
handleFaultprotected static final String GOV_VA_MED_RPC_RESPONSE
protected static final String GOV_VA_MED_RPC_FAULT
protected static final String ERROR_MSG_RPC
protected static final String COMMON_RESPONSE_VERSION
protected static final String CDATA_BEG
protected static final String CDATA_END_W_SUFFIX
protected static final String CDATA_END_WO_SUFFIX
protected static final String MOST_COMMON_HEADER
protected static final String MOST_COMMON_MIDDLE
protected static final String MOST_COMMON_ENDING
public RpcResponseFactory()
public VistaLinkResponseVO handleResponse(String response, VistaLinkRequestVO requestVO) throws FoundationsException
VistaLinkResponseFactoryImplhandleResponse in interface VistaLinkResponseFactoryhandleResponse in class VistaLinkResponseFactoryImplFoundationsExceptionVistaLinkResponseFactory.handleResponse(java.lang.String,
gov.va.med.vistalink.adapter.record.VistaLinkRequestVO)protected VistaLinkResponseVO parseMessageBody(String rawXml, String filteredXml, Document doc, String messageType, VistaLinkRequestVO requestVO) throws FoundationsException
parseMessageBody in class VistaLinkResponseFactoryImplFoundationsExceptionVistaLinkResponseFactoryImpl.parseMessageBody(java.lang.String,
java.lang.String, org.w3c.dom.Document, java.lang.String,
gov.va.med.vistalink.adapter.record.VistaLinkRequestVO)protected boolean doesResponseIndicateFault(String rawXml)
doesResponseIndicateFault in class VistaLinkResponseFactoryImplVistaLinkResponseFactoryImpl.doesResponseIndicateFault(java.lang.String)protected String filterResponseXmlString(String rawXml, boolean isFault)
filterResponseXmlString in class VistaLinkResponseFactoryImplVistaLinkResponseFactoryImpl.filterResponseXmlString(java.lang.String,
boolean)protected VistaLinkFaultException handleSpecificFault(Document xdoc, String messageType, VistaLinkFaultException faultException) throws VistaLinkFaultException, FoundationsException
handleSpecificFault in class VistaLinkResponseFactoryImplVistaLinkFaultExceptionFoundationsExceptionVistaLinkResponseFactoryImpl.handleSpecificFault(org.w3c.dom.Document,
java.lang.String,
gov.va.med.vistalink.adapter.record.VistaLinkFaultException)Copyright © 2026. All rights reserved.