diff options
author | lijiale <lijiale@cmss.chinamobile.com> | 2019-06-20 21:02:09 +0800 |
---|---|---|
committer | lijiale <lijiale@cmss.chinamobile.com> | 2019-06-20 21:02:09 +0800 |
commit | c80161847b5f2b0c187ec74415de430585ebc75d (patch) | |
tree | 504212396348257065bc060ffdbe2c5c68b426dc /service/src | |
parent | 1cfb22b49d6112878b8e669ef90f604bd8e146bf (diff) |
Unified code style, using constants
Issue-ID: VFC-1423
Signed-off-by: li jiale <lijiale@cmss.chinamobile.com>
Change-Id: Id92bfba328d7d57f836d224f8f2721a7b9e63a46
Diffstat (limited to 'service/src')
-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; |