From 79708633f7dec93c4c86486d5834ce639208ce11 Mon Sep 17 00:00:00 2001 From: Christian Ohr Date: Thu, 6 Jun 2024 14:05:30 +0200 Subject: [PATCH] #452: clean up remaining and unused FHIR producer endpoint parameters --- .../camel/ihe/fhir/core/FhirEndpointConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform-camel/ihe/fhir/core/src/main/java/org/openehealth/ipf/platform/camel/ihe/fhir/core/FhirEndpointConfiguration.java b/platform-camel/ihe/fhir/core/src/main/java/org/openehealth/ipf/platform/camel/ihe/fhir/core/FhirEndpointConfiguration.java index d489be4133..711645f133 100644 --- a/platform-camel/ihe/fhir/core/src/main/java/org/openehealth/ipf/platform/camel/ihe/fhir/core/FhirEndpointConfiguration.java +++ b/platform-camel/ihe/fhir/core/src/main/java/org/openehealth/ipf/platform/camel/ihe/fhir/core/FhirEndpointConfiguration.java @@ -22,6 +22,7 @@ import ca.uhn.fhir.rest.client.api.ServerValidationModeEnum; import ca.uhn.fhir.rest.gclient.IClientExecutable; import lombok.Getter; +import lombok.extern.slf4j.Slf4j; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; import org.apache.camel.support.EndpointHelper; @@ -51,6 +52,7 @@ * @author Christian Ohr * @since 3.1 */ +@Slf4j @UriParams public class FhirEndpointConfiguration extends AuditableEndpointConfiguration { @@ -158,6 +160,10 @@ protected FhirEndpointConfiguration(FhirComponent component, S this.context = fhirContext; this.securityInformation = new SslAwareApacheRestfulClientFactory(fhirContext) .initializeSecurityInformation(secure, null, null, null, null); + if (!parameters.isEmpty()) { + log.info("Disregarding URI parameters {} for endpoint {}, because static fhirContext is provided.", parameters, path); + parameters.clear(); + } return; }