diff options
author | 2018-03-28 12:45:09 +0530 | |
---|---|---|
committer | 2018-03-28 12:45:09 +0530 | |
commit | a915cce776fc4094c0cb20840a783389d9951067 (patch) | |
tree | 69f087b594db74f6e69f324f85b5516c01ff13c2 /wfenginemgrservice/src/main/java/org/onap/workflow | |
parent | 02df4de70fffc6ecc52e9c23168e43803e510371 (diff) |
Sonar:Access management wfenginemgr
common/RestClient.java
file name:RestClient.java
Change-Id: Idabb6ed057ab678178e11092eaf3d307c4f51dc7
Issue-ID: VFC-857
Signed-off-by: ajay priyadarshi <ajay.priyadarshi@ril.com>
Diffstat (limited to 'wfenginemgrservice/src/main/java/org/onap/workflow')
-rw-r--r-- | wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java index f38fe11..2a6ba34 100644 --- a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java @@ -45,8 +45,7 @@ public class RestClient { private static final String HTTP = "http";
private static final Logger logger = LoggerFactory.getLogger(RestClient.class);
- //PublicExposureUsedInTest
- public static boolean isTest = false;
+ private static boolean isTest = false;
public enum HttpMethod {
GET, POST, PUT, DELETE
@@ -287,4 +286,12 @@ public class RestClient { return executeHttpDeleteDeploy(HttpMethod.DELETE, ip, port, url);
}
+ public static boolean getIsTest(){
+ return isTest;
+ }
+
+ public static void setIsTest(boolean arg){
+ isTest = arg;
+ }
+
}
|