From 0cbf172358eac588775ea99b4e2c8eff5a6cc5f3 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 23 Sep 2024 23:20:16 +0200 Subject: [PATCH] This ought to be registeres, otherwise some call don't work well. --- .../java/nl/vpro/api/client/media/MediaRestClient.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/media-backend-api-client/src/main/java/nl/vpro/api/client/media/MediaRestClient.java b/media-backend-api-client/src/main/java/nl/vpro/api/client/media/MediaRestClient.java index 62c2cc54..535c577a 100644 --- a/media-backend-api-client/src/main/java/nl/vpro/api/client/media/MediaRestClient.java +++ b/media-backend-api-client/src/main/java/nl/vpro/api/client/media/MediaRestClient.java @@ -3,8 +3,7 @@ import jakarta.inject.Inject; import jakarta.inject.Named; import jakarta.ws.rs.ServiceUnavailableException; -import jakarta.ws.rs.client.ClientRequestContext; -import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.*; import jakarta.ws.rs.core.Response; import lombok.*; @@ -41,6 +40,7 @@ import nl.vpro.poms.shared.Headers; import nl.vpro.rs.VersionRestService; import nl.vpro.rs.client.VersionResult; +import nl.vpro.rs.converters.CaseInsensitiveEnumParamConverterProvider; import nl.vpro.rs.media.FrameCreatorRestService; import nl.vpro.rs.media.MediaBackendRestService; import nl.vpro.util.*; @@ -437,7 +437,7 @@ protected void buildResteasy(ResteasyClientBuilder builder) { "User name (" + userName + ") and password (" + password + ") should both be non null"); } - builder.httpEngine(getClientHttpEngine()) + ClientBuilder register = builder.httpEngine(getClientHttpEngine()) .register(new BasicAuthentication(userName, password)) .register(new AddRequestHeadersFilter()) .register(VTTSubtitlesReader.class) @@ -446,6 +446,7 @@ protected void buildResteasy(ResteasyClientBuilder builder) { .register(VTTWriter.class) .register(VTTSubtitlesWriter.class) .register(ContentTypeInterceptor.class) + .register(CaseInsensitiveEnumParamConverterProvider.class) ; }