diff options
author | Yan Yang <yangyanyj@chinamobile.com> | 2020-01-21 14:51:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-01-21 14:51:55 +0000 |
commit | 26df7f9fc75a5afc634ac1f761f2bf764bd06204 (patch) | |
tree | 5c258645d9b5b1c67e92ee983519f49db17a4f6a | |
parent | 05e7c2ba368506f5798160132dc1781716a11eeb (diff) | |
parent | c80161847b5f2b0c187ec74415de430585ebc75d (diff) |
Merge "Unified code style, using constants"
-rw-r--r-- | service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/conf/Config.java | 2 | ||||
-rw-r--r-- | service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/constant/Constant.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/conf/Config.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/conf/Config.java index b37e1b9..0481101 100644 --- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/conf/Config.java +++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/conf/Config.java @@ -69,6 +69,6 @@ public class Config { } public static String getOpenstackPrefix() { - return prps.getProperty("openstack_prefix"); + return prps.getProperty(Constant.OPENSTACK_PREFIX); } } diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/constant/Constant.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/constant/Constant.java index e246b16..f103c30 100644 --- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/constant/Constant.java +++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/constant/Constant.java @@ -102,7 +102,9 @@ public class Constant { public static final String GLOBAL_CUSTOMER_ID = "global-customer-id"; public static final String SERVICE_TYPE = "service-type"; - + + public static final String OPENSTACK_PREFIX = "openstack_prefix"; + public static final int HTTP_BAD_REQUEST = 400; public static final int HTTP_CREATED = 201; |