aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service
diff options
context:
space:
mode:
authorpwielebs <piotr.wielebski@nokia.com>2018-09-04 09:44:33 +0200
committerpwielebs <piotr.wielebski@nokia.com>2018-09-04 09:44:33 +0200
commita4c979b6de8c1c76f0f12ae2b8dd0e60c3084830 (patch)
tree5fd8eca8889fb37000b834128fdd742dc05664df /prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service
parent3737046ff3c8e032257b257912778403fc058ee0 (diff)
Fixing code issues
1. SonarIssues 2. CheckStyle corrections 3. Empty code deletions 4. Adding AAIHeaders config to cloud configurations Change-Id: Id624c52bc7f57338fad5276fffd9f29b21af2f69 Issue-ID: DCAEGEN2-606 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
Diffstat (limited to 'prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service')
-rw-r--r--prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/PrhConfigurationProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/PrhConfigurationProvider.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/PrhConfigurationProvider.java
index 414c5a34..c80ecfaf 100644
--- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/PrhConfigurationProvider.java
+++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/PrhConfigurationProvider.java
@@ -59,7 +59,7 @@ public class PrhConfigurationProvider {
LOGGER.info("Retrieving Config Binding Service endpoint from Consul");
try {
return httpGetClient.callHttpGet(getConsulUrl(envProperties), JsonArray.class)
- .flatMap(jsonArray -> this.createConfigBindingserviceurl(jsonArray, envProperties.appName()));
+ .flatMap(jsonArray -> this.createConfigBindingServiceUrl(jsonArray, envProperties.appName()));
} catch (URISyntaxException e) {
LOGGER.warn("Malformed Consul uri", e);
return Mono.error(e);
@@ -77,12 +77,12 @@ public class PrhConfigurationProvider {
}
- private Mono<String> createConfigBindingserviceurl(JsonArray jsonArray, String appName) {
+ private Mono<String> createConfigBindingServiceUrl(JsonArray jsonArray, String appName) {
return getConfigBindingObject(jsonArray)
- .flatMap(jsonObject -> buildConfigBindingserviceurl(jsonObject, appName));
+ .flatMap(jsonObject -> buildConfigBindingServiceUrl(jsonObject, appName));
}
- private Mono<String> buildConfigBindingserviceurl(JsonObject jsonObject, String appName) {
+ private Mono<String> buildConfigBindingServiceUrl(JsonObject jsonObject, String appName) {
try {
return Mono.just(getUri(jsonObject.get("ServiceAddress").getAsString(),
jsonObject.get("ServicePort").getAsInt(), "/service_component", appName));