move URI class 17/78917/1
authormicdzied <michal.1.dziedzic@nokia.com>
Thu, 21 Feb 2019 12:21:43 +0000 (13:21 +0100)
committermicdzied <michal.1.dziedzic@nokia.com>
Thu, 21 Feb 2019 12:21:43 +0000 (13:21 +0100)
Change-Id: I4e923f0426ecccda6de973400a022e4d86780d4f
Issue-ID: DCAEGEN2-1267
Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
rest-services/cbs-client/pom.xml
rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/providers/ReactiveCloudConfigurationProvider.java
rest-services/common-dependency/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/uri/URI.java [moved from rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/providers/URI.java with 87% similarity]

index a3424b6..b130691 100644 (file)
   <description>Config Binding Service Rest Services Module</description>
   <packaging>jar</packaging>
 
+  <properties>
+    <common-dependency.version>1.1.2-SNAPSHOT</common-dependency.version>
+  </properties>
+
   <dependencies>
+    <dependency>
+      <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
+      <artifactId>common-dependency</artifactId>
+      <version>${common-dependency.version}</version>
+    </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webflux</artifactId>
index a0b4a6f..88665e7 100644 (file)
@@ -25,6 +25,7 @@ import com.google.gson.JsonArray;
 import com.google.gson.JsonObject;
 import org.onap.dcaegen2.services.sdk.rest.services.cbs.client.http.configuration.CloudHttpClient;
 import org.onap.dcaegen2.services.sdk.rest.services.cbs.client.http.configuration.EnvProperties;
+import org.onap.dcaegen2.services.sdk.rest.services.uri.URI;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import reactor.core.publisher.Mono;
@@ -19,9 +19,9 @@
  *
  */
 
-package org.onap.dcaegen2.services.sdk.rest.services.cbs.client.providers;
+package org.onap.dcaegen2.services.sdk.rest.services.uri;
 
-final class URI {
+public final class URI {
     private String scheme;
     private String host;
     private int port;
@@ -36,7 +36,7 @@ final class URI {
     private URI() {
     }
 
-    static final class URIBuilder {
+    public static final class URIBuilder {
         private String scheme;
         private String host;
         private int port;
@@ -47,52 +47,52 @@ final class URI {
         private String query;
         private String schemeSpecificPart;
 
-        URIBuilder scheme(String scheme) {
+        public URIBuilder scheme(String scheme) {
             this.scheme = scheme;
             return this;
         }
 
-        URIBuilder host(String host) {
+        public URIBuilder host(String host) {
             this.host = host;
             return this;
         }
 
-        URIBuilder port(int port) {
+        public URIBuilder port(int port) {
             this.port = port;
             return this;
         }
 
-        URIBuilder path(String path) {
+        public URIBuilder path(String path) {
             this.path = path;
             return this;
         }
 
-        URIBuilder fragment(String fragment) {
+        public URIBuilder fragment(String fragment) {
             this.fragment = fragment;
             return this;
         }
 
-        URIBuilder authority(String authority) {
+        public URIBuilder authority(String authority) {
             this.authority = authority;
             return this;
         }
 
-        URIBuilder userInfo(String userInfo) {
+        public URIBuilder userInfo(String userInfo) {
             this.userInfo = userInfo;
             return this;
         }
 
-        URIBuilder query(String query) {
+        public URIBuilder query(String query) {
             this.query = query;
             return this;
         }
 
-        URIBuilder schemeSpecificPart(String schemeSpecificPart) {
+        public URIBuilder schemeSpecificPart(String schemeSpecificPart) {
             this.schemeSpecificPart = schemeSpecificPart;
             return this;
         }
 
-        URI build() {
+        public URI build() {
             URI uri = new URI();
             uri.scheme = this.scheme;
             uri.host = this.host;