
Class FhirClientBalpSink
java.lang.Object
ca.uhn.fhir.storage.interceptor.balp.FhirClientBalpSink
- All Implemented Interfaces:
IBalpAuditEventSink
- Direct Known Subclasses:
AsyncMemoryQueueBackedFhirClientBalpSink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ca.uhn.fhir.rest.client.api.IGenericClient -
Constructor Summary
ConstructorsConstructorDescriptionFhirClientBalpSink(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 voidrecordAuditEvent(org.hl7.fhir.instance.model.api.IBaseResource auditEvent) voidrecordAuditEvent(org.hl7.fhir.r4.model.AuditEvent theAuditEvent) protected voidtransmitEventToClient(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:
recordAuditEventin interfaceIBalpAuditEventSink
-
recordAuditEvent
-
transmitEventToClient
-