Class BasicHttpAuditMessageQueue

java.lang.Object
org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
org.openehealth.ipf.commons.audit.queue.BasicHttpAuditMessageQueue
All Implemented Interfaces:
AuditMessageQueue

public class BasicHttpAuditMessageQueue extends AbstractAuditMessageQueue
Message Queue that sends off audit messages using a HTTP connection. It is recommended that the connection factory implements a pool or caches connection objects for performance reasons.

This is primarily meant to send audit messages to a HTTP-based relay that eventually sends the audit record to an audit repository. Therefore, RFC 5425 metadata is placed in X-IPF-ATNA-* HTTP headers, so the receiver is able to restore them.

Since:
3.7
Author:
Christian Ohr
  • Constructor Details

    • BasicHttpAuditMessageQueue

      public BasicHttpAuditMessageQueue(URL url)
    • BasicHttpAuditMessageQueue

      public BasicHttpAuditMessageQueue(URL url, String user, String password)
      Parameters:
      url - URL
      user - user name, maybe null
      password - password, maybe null
  • Method Details

    • handle

      protected void handle(AuditContext auditContext, String auditMessage)
      Specified by:
      handle in class AbstractAuditMessageQueue
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
    • setReadTimeout

      public void setReadTimeout(int readTimeout)