Class AbstractAuditMessageQueue
java.lang.Object
org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
- All Implemented Interfaces:
AuditMessageQueue
- Direct Known Subclasses:
AsynchronousAuditMessageQueue
,BasicHttpAuditMessageQueue
,JmsAuditMessageQueue
,LoggingAuditMessageQueue
,RestTemplateAuditMessageQueue
,SynchronousAuditMessageQueue
Abstract base class for message queues that serialize the AuditRecord into a wire format
by using the configured SerializationStrategy
and send it to an ATNA repository using the configured AuditTransmissionProtocol
,
There may be other use cases such as forwarding AuditMessages as object into a Camel Route or in-memory storage
or convert them into FHIR AuditEvents. In this case, implement your own AuditMessageQueue
.
- Since:
- 3.5
- Author:
- Christian Ohr
-
Field Summary
Fields inherited from interface org.openehealth.ipf.commons.audit.queue.AuditMessageQueue
X_IPF_ATNA_APPLICATION, X_IPF_ATNA_HOSTNAME, X_IPF_ATNA_PROCESSID, X_IPF_ATNA_TIMESTAMP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
audit
(AuditContext auditContext, AuditMessage... auditMessages) protected abstract void
handle
(AuditContext auditContext, String auditRecord) void
setPretty
(boolean pretty) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.queue.AuditMessageQueue
flush, shutdown
-
Constructor Details
-
AbstractAuditMessageQueue
public AbstractAuditMessageQueue()
-
-
Method Details
-
audit
- Specified by:
audit
in interfaceAuditMessageQueue
- Parameters:
auditContext
- IPF audit contextauditMessages
- one or more audit message instances
-
handle
-
setPretty
public void setPretty(boolean pretty)
-