Class BasicHttpAuditMessageQueue
java.lang.Object
org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
org.openehealth.ipf.commons.audit.queue.BasicHttpAuditMessageQueue
- All Implemented Interfaces:
AuditMessageQueue
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
-
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 TypeMethodDescriptionprotected void
handle
(AuditContext auditContext, String auditMessage) void
setConnectTimeout
(int connectTimeout) void
setReadTimeout
(int readTimeout) Methods inherited from class org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
audit, setPretty
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
-
BasicHttpAuditMessageQueue
-
BasicHttpAuditMessageQueue
- Parameters:
url
- URLuser
- user name, maybe nullpassword
- password, maybe null
-
-
Method Details
-
handle
- Specified by:
handle
in classAbstractAuditMessageQueue
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
setReadTimeout
public void setReadTimeout(int readTimeout)
-