summaryrefslogtreecommitdiffstats
path: root/rest-services
diff options
context:
space:
mode:
authorFilip Krzywka <filip.krzywka@nokia.com>2019-04-01 10:48:44 +0200
committerFilip Krzywka <filip.krzywka@nokia.com>2019-04-01 10:48:44 +0200
commit2343167c062ef8fdf6da6b9fdf8d2f5f1fca6ade (patch)
treebc1e325a872d08526ec320dd09a1eb3494648901 /rest-services
parent6c25f486820d1fca8f8aa7c075dec832ca9d1536 (diff)
Implement toString for Gson's objects wrappers
Change-Id: Ie28753ba8146d63cd7d9d9c05680bc0640e64cf4 Issue-ID: DCAEGEN2-1315 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
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;