Package org.openehealth.ipf.boot.atna
Class RestClientAuditMessageQueue
java.lang.Object
org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
org.openehealth.ipf.boot.atna.RestClientAuditMessageQueue
- All Implemented Interfaces:
AuditMessageQueue
Alternative to
BasicHttpAuditMessageQueue
,
using Spring's RestClient / RestClient.Builder classes-
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
ConstructorDescriptionRestClientAuditMessageQueue
(RestClient.Builder restClientBuilder, URI uri) RestClientAuditMessageQueue
(RestClient.Builder restClientBuilder, URI uri, String user, String password) -
Method Summary
Modifier and TypeMethodDescriptionprotected RestClient.Builder
customize
(RestClient.Builder builder) protected void
handle
(AuditContext auditContext, String auditRecord) void
setConnectTimeout
(long connectTimeoutMillis) void
setReadTimeout
(long readTimeoutMillis) 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
-
RestClientAuditMessageQueue
-
RestClientAuditMessageQueue
public RestClientAuditMessageQueue(RestClient.Builder restClientBuilder, URI uri, String user, String password) - Parameters:
uri
- URLuser
- user name, maybe nullpassword
- password, maybe null
-
-
Method Details
-
customize
-
handle
- Specified by:
handle
in classAbstractAuditMessageQueue
-
setConnectTimeout
public void setConnectTimeout(long connectTimeoutMillis) -
setReadTimeout
public void setReadTimeout(long readTimeoutMillis)
-