public abstract class MllpAuditStrategy<T extends MllpAuditDataset> extends Object
MllpAuditDataset containing the data for the audit record.| Modifier | Constructor and Description |
|---|---|
protected |
MllpAuditStrategy(boolean serverSide)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
auditAuthenticationNodeFailure(String hostAddress)
Audits an authentication node failure.
|
abstract T |
createAuditDataset()
Creates a new audit dataset instance.
|
abstract void |
doAudit(org.openhealthtools.ihe.atna.auditor.codes.rfc3881.RFC3881EventCodes.RFC3881EventOutcomeCodes eventOutcome,
T auditDataset)
Performs the actual ATNA audit.
|
abstract void |
enrichAuditDatasetFromRequest(T auditDataset,
ca.uhn.hl7v2.model.Message msg,
org.apache.camel.Exchange exchange)
Enriches the given audit dataset with transaction-specific
contents of the request message and Camel exchange.
|
void |
enrichAuditDatasetFromResponse(T auditDataset,
ca.uhn.hl7v2.model.Message msg)
Enriches the given audit dataset with transaction-specific
contents of the response message.
|
protected boolean |
isServerSide() |
protected MllpAuditStrategy(boolean serverSide)
serverSide - true when this strategy is a server-side one;
false otherwise.public abstract T createAuditDataset()
public abstract void enrichAuditDatasetFromRequest(T auditDataset, ca.uhn.hl7v2.model.Message msg, org.apache.camel.Exchange exchange)
auditDataset - audit dataset to be enriched.msg - Message representing the message.exchange - Camel exchangepublic void enrichAuditDatasetFromResponse(T auditDataset, ca.uhn.hl7v2.model.Message msg)
auditDataset - audit dataset to be enriched.msg - Message representing the message.public abstract void doAudit(org.openhealthtools.ihe.atna.auditor.codes.rfc3881.RFC3881EventCodes.RFC3881EventOutcomeCodes eventOutcome,
T auditDataset)
eventOutcome - Transaction completion status.auditDataset - Collected audit dataset.public static void auditAuthenticationNodeFailure(String hostAddress)
hostAddress - the address of the node that is responsible for the failure.protected boolean isServerSide()
Copyright © 2015 Open eHealth Foundation. All rights reserved.