From 9055b187b50afc5eb5a1a9780b8689686afa2d8e Mon Sep 17 00:00:00 2001 From: "Dr. Christoph \"Schorsch\" Jung" Date: Thu, 25 Apr 2024 09:20:09 +0200 Subject: [PATCH] fix: http client configguration override adopted to EDC 0.6.1 upstream --- .../org/eclipse/tractusx/agents/edc/http/HttpClientFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent-plane/agent-plane-protocol/src/main/java/org/eclipse/tractusx/agents/edc/http/HttpClientFactory.java b/agent-plane/agent-plane-protocol/src/main/java/org/eclipse/tractusx/agents/edc/http/HttpClientFactory.java index 6b1e2d6..05298ab 100644 --- a/agent-plane/agent-plane-protocol/src/main/java/org/eclipse/tractusx/agents/edc/http/HttpClientFactory.java +++ b/agent-plane/agent-plane-protocol/src/main/java/org/eclipse/tractusx/agents/edc/http/HttpClientFactory.java @@ -51,7 +51,7 @@ public class HttpClientFactory { httpDataSourceFactory = HttpClientFactory.class.getClassLoader().loadClass("org.eclipse.edc.connector.dataplane.http.pipeline.HttpDataSourceFactory"); httpClient = httpDataSourceFactory.getDeclaredField("httpClient"); httpClient.setAccessible(true); - okHttpClient = HttpClientFactory.class.getClassLoader().loadClass("org.eclipse.edc.connector.core.base.EdcHttpClientImpl").getDeclaredField("okHttpClient"); + okHttpClient = HttpClientFactory.class.getClassLoader().loadClass("org.eclipse.edc.http.client.EdcHttpClientImpl").getDeclaredField("okHttpClient"); okHttpClient.setAccessible(true); connectTimeoutMillis = OkHttpClient.class.getDeclaredField("connectTimeoutMillis"); connectTimeoutMillis.setAccessible(true);