diff options
author | 2018-02-12 17:13:17 +0800 | |
---|---|---|
committer | 2018-02-12 17:24:23 +0800 | |
commit | ceda3116851e86b5ab25d6e6674be6b6397d763f (patch) | |
tree | 431c12bff9a9c02a39da5956887ab62071dfe296 /holmes-actions/src/main/java/org/onap | |
parent | 83307e37a264972f4f9c60a114f40a375e32634b (diff) |
Test Replace Jackson with GSON
Change-Id: I02a9fa14239ff4ceb89c1bc3906788fe8225b4b4
Issue-ID: HOLMES-115
Signed-off-by: YiLi <li.yi101@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/main/java/org/onap')
-rw-r--r-- | holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java index 5c6965a..7201f36 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java @@ -25,7 +25,6 @@ import javax.ws.rs.core.Response; import lombok.Getter;
import lombok.Setter;
import org.apache.http.HttpStatus;
-import org.glassfish.jersey.client.ClientConfig;
import org.jvnet.hk2.annotations.Service;
import org.onap.holmes.common.dmaap.entity.PolicyMsg;
import org.onap.holmes.common.exception.CorrelationException;
@@ -41,7 +40,7 @@ public class Publisher { private String authExpDate;
public boolean publish(PolicyMsg msg) throws CorrelationException {
- Client client = ClientBuilder.newClient(new ClientConfig());
+ Client client = ClientBuilder.newClient();
String content = JSON.toJSONString(msg);
WebTarget webTarget = client.target(url);
Response response = null;
|