Package org.openehealth.ipf.boot.atna
Class RestTemplateAuditMessageQueue
java.lang.Object
org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
org.openehealth.ipf.boot.atna.RestTemplateAuditMessageQueue
- All Implemented Interfaces:
AuditMessageQueue
Alternative to
BasicHttpAuditMessageQueue
,
using Spring's RestTemplate / RestTemplateBuilder 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
ConstructorDescriptionRestTemplateAuditMessageQueue
(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, URI uri) RestTemplateAuditMessageQueue
(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, URI uri, String user, String password) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
RestTemplateAuditMessageQueue
public RestTemplateAuditMessageQueue(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, URI uri) -
RestTemplateAuditMessageQueue
public RestTemplateAuditMessageQueue(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder, URI uri, String user, String password) - Parameters:
uri
- URLuser
- user name, maybe nullpassword
- password, maybe null
-
-
Method Details
-
handle
- Specified by:
handle
in classAbstractAuditMessageQueue
-
setConnectTimeout
public void setConnectTimeout(long connectTimeoutMillis) -
setReadTimeout
public void setReadTimeout(long readTimeoutMillis)
-