diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java b/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java index b2429d9..05dd373 100644 --- a/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java +++ b/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java @@ -42,6 +42,11 @@ public class DatabusControllerClient { private final Client client; private final InventoryConfiguration.DatabusControllerConnectionConfiguration connectionConfiguration; + public DatabusControllerClient(Client client, InventoryConfiguration.DatabusControllerConnectionConfiguration connectionConfiguration) { + this.client = client; + this.connectionConfiguration = connectionConfiguration; + } + public URI constructResourceURI(String resourcePath) { // Make sure that the resource path has a "/" because the UriBuilder sucks and doesn't do it for us. if (resourcePath.charAt(0) != '/') { @@ -81,11 +86,4 @@ public class DatabusControllerClient { throw new DatabusControllerClientException(String.format("Unexpected error from databus controller: %d", response.getStatus())); } - - public DatabusControllerClient(Client client, - InventoryConfiguration.DatabusControllerConnectionConfiguration connectionConfiguration) { - this.client = client; - this.connectionConfiguration = connectionConfiguration; - } - } |