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

public abstract class AbstractAuditMessageQueue extends Object implements AuditMessageQueue

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
  • Constructor Details

    • AbstractAuditMessageQueue

      public AbstractAuditMessageQueue()
  • Method Details

    • audit

      public void audit(AuditContext auditContext, AuditMessage... auditMessages)
      Specified by:
      audit in interface AuditMessageQueue
      Parameters:
      auditContext - IPF audit context
      auditMessages - one or more audit message instances
    • handle

      protected abstract void handle(AuditContext auditContext, String auditRecord)
    • setPretty

      public void setPretty(boolean pretty)