Class RestTemplateAuditMessageQueue

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

public class RestTemplateAuditMessageQueue extends AbstractAuditMessageQueue
Alternative to BasicHttpAuditMessageQueue, using Spring's RestTemplate / RestTemplateBuilder classes
  • 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 - URL
      user - user name, maybe null
      password - password, maybe null
  • Method Details

    • handle

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

      public void setConnectTimeout(long connectTimeoutMillis)
    • setReadTimeout

      public void setReadTimeout(long readTimeoutMillis)