Class FhirClientBalpSink
java.lang.Object
ca.uhn.fhir.storage.interceptor.balp.FhirClientBalpSink
- All Implemented Interfaces:
IBalpAuditEventSink
- Direct Known Subclasses:
AsyncMemoryQueueBackedFhirClientBalpSink
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ca.uhn.fhir.rest.client.api.IGenericClient
-
Constructor Summary
ConstructorDescriptionFhirClientBalpSink
(ca.uhn.fhir.context.FhirContext theFhirContext, String theTargetBaseUrl) Sets the FhirContext to use when initiating outgoing connectionsFhirClientBalpSink
(ca.uhn.fhir.context.FhirContext theFhirContext, String theTargetBaseUrl, List<Object> theClientInterceptors) Sets the FhirContext to use when initiating outgoing connectionsFhirClientBalpSink
(ca.uhn.fhir.rest.client.api.IGenericClient theClient) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected 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)
-
Field Details
-
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
Constructor- Parameters:
theClient
- The FHIR client to use as a sink.
-
-
Method Details
-
recordAuditEvent
- Specified by:
recordAuditEvent
in interfaceIBalpAuditEventSink
-
recordAuditEvent
-
transmitEventToClient
-