Class FhirClientBalpSink

java.lang.Object
ca.uhn.fhir.storage.interceptor.balp.FhirClientBalpSink
All Implemented Interfaces:
IBalpAuditEventSink
Direct Known Subclasses:
AsyncMemoryQueueBackedFhirClientBalpSink

public class FhirClientBalpSink extends Object implements IBalpAuditEventSink
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ca.uhn.fhir.rest.client.api.IGenericClient
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FhirClientBalpSink(ca.uhn.fhir.context.FhirContext theFhirContext, String theTargetBaseUrl)
    Sets the FhirContext to use when initiating outgoing connections
    FhirClientBalpSink(ca.uhn.fhir.context.FhirContext theFhirContext, String theTargetBaseUrl, List<Object> theClientInterceptors)
    Sets the FhirContext to use when initiating outgoing connections
    FhirClientBalpSink(ca.uhn.fhir.rest.client.api.IGenericClient theClient)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    recordAuditEvent(org.hl7.fhir.instance.model.api.IBaseResource auditEvent)
     
    void
    recordAuditEvent(org.hl7.fhir.r4.model.AuditEvent theAuditEvent)
     
    protected void
    transmitEventToClient(org.hl7.fhir.instance.model.api.IBaseResource auditEvent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • myClient

      protected final ca.uhn.fhir.rest.client.api.IGenericClient myClient
  • Constructor Details

    • FhirClientBalpSink

      public FhirClientBalpSink(@Nonnull ca.uhn.fhir.context.FhirContext theFhirContext, @Nonnull String theTargetBaseUrl)
      Sets the FhirContext to use when initiating outgoing connections
      Parameters:
      theFhirContext - The FhirContext instance. This context must be for the FHIR Version supported by the target/sink server (as opposed to the FHIR Version supported by the audit source).
      theTargetBaseUrl - The FHIR server base URL for the target/sink server to receive audit events.
    • FhirClientBalpSink

      public FhirClientBalpSink(@Nonnull ca.uhn.fhir.context.FhirContext theFhirContext, @Nonnull String theTargetBaseUrl, @Nullable List<Object> theClientInterceptors)
      Sets the FhirContext to use when initiating outgoing connections
      Parameters:
      theFhirContext - The FhirContext instance. This context must be for the FHIR Version supported by the target/sink server (as opposed to the FHIR Version supported by the audit source).
      theTargetBaseUrl - The FHIR server base URL for the target/sink server to receive audit events.
      theClientInterceptors - An optional list of interceptors to register against the client. May be null.
    • FhirClientBalpSink

      public FhirClientBalpSink(ca.uhn.fhir.rest.client.api.IGenericClient theClient)
      Constructor
      Parameters:
      theClient - The FHIR client to use as a sink.
  • Method Details