Class QpdAwareNakFactory
java.lang.Object
org.openehealth.ipf.commons.ihe.hl7v2.NakFactory<QueryAuditDataset>
org.openehealth.ipf.commons.ihe.hl7v2.QpdAwareNakFactory
NAK factory for PDQ, PDVQ and PIX Query.
- Author:
- Dmytro Rud
-
Constructor Summary
ConstructorDescriptionQpdAwareNakFactory
(Hl7v2TransactionConfiguration<QueryAuditDataset> config, String messageType, String triggerEvent) -
Method Summary
Modifier and TypeMethodDescriptionGenerates a transaction-specific HL7v2 ACK response message on the basis of the original HAPI request message.createNak
(Message originalMessage, HL7Exception t, AcknowledgmentCode ackTypeCode) Generates an HL7v2 NAK response message on the basis of the thrown exception and the original HAPI request message.createNak0
(Message originalMessage, HL7Exception e, AcknowledgmentCode ackTypeCode) Methods inherited from class org.openehealth.ipf.commons.ihe.hl7v2.NakFactory
createDefaultNak, createNak, formatErrorMessage, getAckTypeCode, getConfig, getHl7Exception
-
Constructor Details
-
QpdAwareNakFactory
public QpdAwareNakFactory(Hl7v2TransactionConfiguration<QueryAuditDataset> config, String messageType, String triggerEvent)
-
-
Method Details
-
createNak
Description copied from class:NakFactory
Generates an HL7v2 NAK response message on the basis of the thrown exception and the original HAPI request message.- Overrides:
createNak
in classNakFactory<QueryAuditDataset>
- Parameters:
originalMessage
- original HAPI request message.t
- thrown exception.ackTypeCode
- HL7v2 acknowledgement type code.
-
createNak0
public Message createNak0(Message originalMessage, HL7Exception e, AcknowledgmentCode ackTypeCode) throws HL7Exception - Throws:
HL7Exception
-
createAck
Description copied from class:NakFactory
Generates a transaction-specific HL7v2 ACK response message on the basis of the original HAPI request message.- Overrides:
createAck
in classNakFactory<QueryAuditDataset>
- Parameters:
originalMessage
- original HAPI request message.
-