From a557b012ab5c51f9a5fb88328eb678eb78091118 Mon Sep 17 00:00:00 2001 From: Marcin Migdal Date: Fri, 8 Mar 2019 15:49:58 +0100 Subject: Change CloudHttpClient API Change-Id: Icbbe871e71c6bb46aba7411b9f9016af14c5eab9 Issue-ID: DCAEGEN2-1310 Signed-off-by: Marcin Migdal --- .../services/aai/client/service/http/patch/AaiHttpPatchClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rest-services/aai-client/src/main') diff --git a/rest-services/aai-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/aai/client/service/http/patch/AaiHttpPatchClient.java b/rest-services/aai-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/aai/client/service/http/patch/AaiHttpPatchClient.java index cfaec6ff..ef601550 100644 --- a/rest-services/aai-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/aai/client/service/http/patch/AaiHttpPatchClient.java +++ b/rest-services/aai-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/aai/client/service/http/patch/AaiHttpPatchClient.java @@ -27,12 +27,13 @@ import org.onap.dcaegen2.services.sdk.rest.services.model.AaiModel; import org.onap.dcaegen2.services.sdk.rest.services.model.JsonBodyBuilder; import org.onap.dcaegen2.services.sdk.rest.services.uri.URI; import reactor.core.publisher.Mono; +import reactor.netty.http.client.HttpClientResponse; import static org.onap.dcaegen2.services.sdk.rest.services.aai.client.service.AaiHttpClientFactory.createRequestDiagnosticContext; import static org.onap.dcaegen2.services.sdk.rest.services.aai.client.service.AaiHttpClientFactory.performBasicAuthentication; -public final class AaiHttpPatchClient implements AaiHttpClient { +public final class AaiHttpPatchClient implements AaiHttpClient { private CloudHttpClient httpPatchClient; private final AaiClientConfiguration configuration; @@ -45,7 +46,7 @@ public final class AaiHttpPatchClient implements AaiHttpClient { addAuthorizationBasicHeader(); } - public Mono getAaiResponse(AaiModel aaiModel) { + public Mono getAaiResponse(AaiModel aaiModel) { return httpPatchClient .patch(getUri(aaiModel.getCorrelationId()), createRequestDiagnosticContext(), configuration.aaiHeaders(), jsonBodyBuilder, aaiModel); } -- cgit 1.2.3-korg