diff options
author | Jim Hahn <jrh3@att.com> | 2020-05-29 15:01:11 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-05-29 16:18:15 -0400 |
commit | cb265743dbf7daf98abf60d3490b571d3722caea (patch) | |
tree | 56dce9da584e3e3877f1aa1e322ac09b0560c976 /plugins/forwarding-plugins/src/main | |
parent | 2d5be866dbca7f1a5d481eecba5c1690d60c8537 (diff) |
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 <jrh3@att.com>
Diffstat (limited to 'plugins/forwarding-plugins/src/main')
-rw-r--r-- | plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java | 6 |
1 files changed, 1 insertions, 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); } |