From cb265743dbf7daf98abf60d3490b571d3722caea Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 29 May 2020 15:01:11 -0400 Subject: Use default serialization provider The default provider has been changed to gson, so the provider property no longer has to be set. Issue-ID: POLICY-1527 Change-Id: If37d8789a439be216bebab81317df5763c432190 Signed-off-by: Jim Hahn --- .../forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java index c688d721..1f580388 100644 --- a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java +++ b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java @@ -22,24 +22,20 @@ package org.onap.policy.distribution.forwarding.lifecycle.api; import com.google.common.collect.ImmutableMap; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; - import javax.ws.rs.client.Entity; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; - import org.onap.policy.common.endpoints.event.comm.bus.internal.BusTopicParams; import org.onap.policy.common.endpoints.http.client.HttpClient; import org.onap.policy.common.endpoints.http.client.HttpClientConfigException; import org.onap.policy.common.endpoints.http.client.HttpClientFactoryInstance; -import org.onap.policy.common.gson.GsonMessageBodyHandler; import org.onap.policy.common.parameters.ParameterService; import org.onap.policy.distribution.forwarding.PolicyForwarder; import org.onap.policy.distribution.forwarding.PolicyForwardingException; @@ -166,7 +162,7 @@ public class LifecycleApiPolicyForwarder implements PolicyForwarder { (wantApi ? forwarderParameters.getApiParameters() : forwarderParameters.getPapParameters()); final BusTopicParams params = BusTopicParams.builder().clientName("Policy Distribution").useHttps(https) .hostname(parameters.getHostName()).port(parameters.getPort()).userName(parameters.getUserName()) - .password(parameters.getPassword()).serializationProvider(GsonMessageBodyHandler.class.getName()) + .password(parameters.getPassword()) .build(); return HttpClientFactoryInstance.getClientFactory().build(params); } -- cgit 1.2.3-korg