1f4534fc01fd38b014fe8b76dd2d0b7067106d55
[vfc/nfvo/resmanagement.git] /
1 /*
2  * Copyright 2016-2017 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.resmanagement.common.constant;
18
19 /**
20  * HTTP constants<br/>
21  * <p>
22  * </p>
23  *
24  * @author
25  * @version VFC 1.0 Aug 25, 2016
26  */
27 public class Constant {
28
29     public static final String RES_MANAGEMENT_DB = "resmanagementdb";
30
31     /**
32      * Database Delete/Modify/Add fail.
33      */
34     public static final int ERROR_CODE = -1;
35
36     /**
37      * Database Delete/Modify/Add success.
38      */
39     public static final int OK_CODE = 1;
40
41     /**
42      * Lack of resource.
43      */
44     public static final int RES_NOT_ENOUGH_CODE = -2;
45
46     /**
47      * Module name.
48      */
49     public static final String MODULE_NAME = "Resmanagement";
50
51     public static final String RESPONSE_CONTENT = "responseContent";
52
53     public static final String STATUS_CODE = "statusCode";
54
55     /**
56      * Format Time
57      */
58     public static final String DATE_FORMATE = "yyyy-MM-dd HH:mm:ss";
59
60     public static final String DATE_UTC_FORMATE = "yyyy-MM-dd'T'HH:mm:ss'Z'";
61
62     public static final String UTC_FORMATE = "UTC";
63
64     public static final String DATE_DAY_FORMATE = "yyyy-MM-dd 00:00:00";
65
66     /**
67      * IAM
68      */
69
70     public static final String HTTP_CONTENT_TYPE = "Content-Type";
71
72     public static final String HTTP_CONTENT_TYPE_VALUE = "application/json;charset=UTF-8";
73
74     public static final String X_TENANT_ID = "X-Tenant-Id";
75
76     public static final String IAM_TOKEN = "x-auth-token";
77
78     public static final String IAM_AUTH_TOKEN = "X-Auth-Token";
79
80     public static final String IAM_USER_ID = "X-User-Id";
81
82     public static final String IAM_USER_NAME = "X-User-Name";
83
84     public static final String IAM_DOMAIN_NAME = "X-Domain-Name";
85
86     public static final String HEADER_SUBJECT_TOKEN = "X-Subject-Token";
87
88     public static final int REPEAT_REG_TIME = 60 * 1000;
89
90     public static String VFC_CUSTOMER_ID = "vfc";
91
92     public static String VFC_SERVICE_SUBSCRIPTION_ID = "vfc-subsription";
93
94     public static final String CONF = "config.properties";
95
96     public static final String HOST = "host_url";
97
98     public static final String PORT = "port";
99
100     public static final String CLOUD_OWNER = "cloud-owner";
101
102     public static final String CLOUD_REGION_ID = "cloud-region-id";
103
104     public static final String TENANT_ID = "tenant-id";
105
106     public static final String GLOBAL_CUSTOMER_ID = "global-customer-id";
107
108     public static final String SERVICE_TYPE = "service-type";
109
110     private Constant() {
111         // private constants
112     }
113 }