summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/rest/src
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-01-15 19:02:19 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-15 19:02:19 +0000
commit8135425f1eb826dd50910d60b421a788f41d9b38 (patch)
tree71503a1f963f26370beb5d88ed16db841a42b303 /controlloop/common/model-impl/rest/src
parent46f739920af1428ac8f47cafb00e5b003bdfea9c (diff)
parentfe4cd8e4c08a19ac543ca93c577b8b3a12a1524f (diff)
Merge "Cleanup of A&AI message model module."
Diffstat (limited to 'controlloop/common/model-impl/rest/src')
-rw-r--r--controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/RESTManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/RESTManager.java b/controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/RESTManager.java
index e2d140c03..c74a75cbe 100644
--- a/controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/RESTManager.java
+++ b/controlloop/common/model-impl/rest/src/main/java/org/onap/policy/rest/RESTManager.java
@@ -37,11 +37,11 @@ import org.apache.http.util.EntityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public final class RESTManager {
+public class RESTManager {
private static final Logger logger = LoggerFactory.getLogger(RESTManager.class);
- public static class Pair<A, B> {
+ public class Pair<A, B> {
public final A a;
public final B b;
@@ -51,7 +51,7 @@ public final class RESTManager {
}
}
- public static Pair<Integer, String> post(String url, String username, String password, Map<String, String> headers, String contentType, String body) {
+ public Pair<Integer, String> post(String url, String username, String password, Map<String, String> headers, String contentType, String body) {
CredentialsProvider credentials = new BasicCredentialsProvider();
credentials.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));
@@ -96,7 +96,7 @@ public final class RESTManager {
}
}
- public static Pair<Integer, String> get(String url, String username, String password, Map<String, String> headers) {
+ public Pair<Integer, String> get(String url, String username, String password, Map<String, String> headers) {
CredentialsProvider credentials = new BasicCredentialsProvider();
credentials.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));