From c80161847b5f2b0c187ec74415de430585ebc75d Mon Sep 17 00:00:00 2001 From: lijiale Date: Thu, 20 Jun 2019 21:02:09 +0800 Subject: Unified code style, using constants Issue-ID: VFC-1423 Signed-off-by: li jiale Change-Id: Id92bfba328d7d57f836d224f8f2721a7b9e63a46 --- .../main/java/org/onap/vfc/nfvo/multivimproxy/common/conf/Config.java | 2 +- .../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; -- cgit 1.2.3-korg