diff options
author | pwielebs <piotr.wielebski@nokia.com> | 2018-04-30 17:15:58 +0200 |
---|---|---|
committer | pwielebs <piotr.wielebski@nokia.com> | 2018-04-30 17:16:59 +0200 |
commit | b1c5d01900ea67f1ed27b4f66020912a0b29aa37 (patch) | |
tree | 1f97f4fba492e3c44cf5c20ab27271efc7a1936d /prh-app-server | |
parent | bf6fa5deff9190c14bba2b15271e44f1e3c21ee7 (diff) |
Response handlers for DmaaP clients changed
Change-Id: I625521013aa02e6709be95ad7b3443707a549f05
Issue-ID: DCAEGEN2-451
Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
Diffstat (limited to 'prh-app-server')
3 files changed, 5 insertions, 7 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIConsumerTaskImpl.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIConsumerTaskImpl.java index 64ccad5c..3504bf98 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIConsumerTaskImpl.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIConsumerTaskImpl.java @@ -45,7 +45,7 @@ public class AAIConsumerTaskImpl extends AAIConsumerTask<AAIClientConfiguration> private final Config prhAppConfig; private final HttpRequestDetails requestDetails; private AAIProducerClient producerClient; - public Optional<String> response; + Optional<String> response; @Autowired public AAIConsumerTaskImpl(AppConfig prhAppConfig, HttpRequestDetails requestDetails) { diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIProducerTaskImpl.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIProducerTaskImpl.java index a5d173ba..5e8dcea1 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIProducerTaskImpl.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/AAIProducerTaskImpl.java @@ -47,9 +47,7 @@ public class AAIProducerTaskImpl extends AAIProducerTask<AAIClientConfiguration> private final Config prhAppConfig; private AAIProducerClient producerClient; private HttpRequestDetails requestDetails; - private String jsonBody = "{\"ipaddress-v4-oam\":\"11.22.33.155\"}"; - private String pnfName = "example-pnf-name-val-40510"; // pnf name received from dmaap required for URI - public Optional<String> response; + Optional<String> response; @Autowired public AAIProducerTaskImpl(AppConfig prhAppConfig, HttpRequestDetails requestDetails) { diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java index 2922da1a..c80b8a7d 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java @@ -19,15 +19,15 @@ */ package org.onap.dcaegen2.services.prh.tasks; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import org.onap.dcaegen2.services.config.DmaapConsumerConfiguration; import org.onap.dcaegen2.services.prh.exceptions.PrhTaskException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; + /** * @author <a href="mailto:przemyslaw.wasala@nokia.com">Przemysław Wąsala</a> on 3/23/18 */ |