aboutsummaryrefslogtreecommitdiffstats
path: root/rest-services
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2019-04-02 07:08:31 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-02 07:08:31 +0000
commitca4e1bbb98e40bf89e4e3c83d7eb983b9027e65a (patch)
tree6ffdd2542534bc01378d2bf817563173cad5f193 /rest-services
parent07636bbe415099175afcbf55c8f08a24e5c357b5 (diff)
parent2343167c062ef8fdf6da6b9fdf8d2f5f1fca6ade (diff)
Merge "Implement toString for Gson's objects wrappers"
Diffstat (limited to 'rest-services')
-rw-r--r--rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java9
-rw-r--r--rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java9
2 files changed, 18 insertions, 0 deletions
diff --git a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java
index 40b8f383..a2d460d7 100644
--- a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java
+++ b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java
@@ -70,4 +70,13 @@ abstract class GsonMessageRouter implements MessageRouter {
public @Nullable AafCredentials aafCredentials() {
return aafCredentials;
}
+
+ @Override
+ public String toString() {
+ return "GsonMessageRouter{" +
+ "name='" + name + '\'' +
+ ", dmaapInfo=" + dmaapInfo +
+ ", aafCredentials=" + aafCredentials +
+ '}';
+ }
} \ No newline at end of file
diff --git a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java
index a746fac6..208cc28a 100644
--- a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java
+++ b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java
@@ -80,6 +80,15 @@ abstract class GsonKafka implements Kafka {
}
@Override
+ public String toString() {
+ return "GsonKafka{" +
+ "name='" + name + '\'' +
+ ", kafkaInfo=" + kafkaInfo +
+ ", aafCredentials=" + aafCredentials +
+ '}';
+ }
+
+ @Override
public boolean equals(Object o) {
if (this == o) {
return true;