public class VistaLinkResponseFactoryImpl extends Object implements VistaLinkResponseFactory
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ERROR_MSG_GEN
Defines the message type for a security errors response
|
protected static String |
GOV_VA_MED_FOUNDATIONS_FAULT
Fault message type name.
|
protected static String |
SUFFIX
Response message suffix (i.e., the last two XML tags).
|
protected static String |
VISTALINK_ROOT_ELEMENT
Response message root element name.
|
| Constructor and Description |
|---|
VistaLinkResponseFactoryImpl()
Constructor for VistaLinkResponseFactoryImpl.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doesResponseIndicateFault(String rawXml)
Should be overriden by the child classes to discover additional fault indication.
|
protected String |
filterResponseXmlString(String rawXml,
boolean isFault)
Allows child classes to implement their own response XML filtering before any other work is done on the response
String (e.g., removing CDATA from the response XML.)
|
protected void |
handleFault(Document xdoc,
String messageType)
Initiates VLJ Fault handling.
|
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)
This method can be overriden by the subclasses to perform additional fault handling and return a subclass of
VistaLinkFaultException.
|
protected VistaLinkResponseVO |
parseMessageBody(String rawXml,
String filteredXml,
Document doc,
String messageType,
VistaLinkRequestVO requestVO)
Parses message body.
|
protected static final String GOV_VA_MED_FOUNDATIONS_FAULT
protected static final String ERROR_MSG_GEN
protected static final String SUFFIX
protected static final String VISTALINK_ROOT_ELEMENT
public VistaLinkResponseFactoryImpl()
public VistaLinkResponseVO handleResponse(String response, VistaLinkRequestVO requestVO) throws FoundationsException
handleResponse in interface VistaLinkResponseFactoryFoundationsExceptionVistaLinkResponseFactory.handleResponse(java.lang.String,
gov.va.med.vistalink.adapter.record.VistaLinkRequestVO)protected boolean doesResponseIndicateFault(String rawXml)
rawXml - protected String filterResponseXmlString(String rawXml, boolean isFault)
rawXml - protected VistaLinkResponseVO parseMessageBody(String rawXml, String filteredXml, Document doc, String messageType, VistaLinkRequestVO requestVO) throws FoundationsException
filteredXml - doc - messageType - requestVO - FoundationsExceptionprotected final void handleFault(Document xdoc, String messageType) throws VistaLinkFaultException, FoundationsException
xdoc - messageType - VistaLinkFaultExceptionFoundationsExceptionprotected VistaLinkFaultException handleSpecificFault(Document xdoc, String messageType, VistaLinkFaultException faultException) throws VistaLinkFaultException, FoundationsException
Implementation in this class returns faultException that is passed into the class.
Overriden method can either return a:
xdoc - messageType - faultException - VistaLinkFaultExceptionFoundationsExceptionCopyright © 2026. All rights reserved.