summaryrefslogtreecommitdiffstats
path: root/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/constant/Constant.java
blob: e246b16a5a8aba0498a7e931ba5d1cf072c71fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * Copyright 2016-2017 Huawei Technologies Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.onap.vfc.nfvo.multivimproxy.common.constant;

/**
 * HTTP constants<br/>
 * <p>
 * </p>
 *
 * @author
 * @version VFC 1.0 Aug 25, 2016
 */
public class Constant {

    public static final String RES_MANAGEMENT_DB = "resmanagementdb";

    /**
     * Database Delete/Modify/Add fail.
     */
    public static final int ERROR_CODE = -1;

    /**
     * Database Delete/Modify/Add success.
     */
    public static final int OK_CODE = 1;

    /**
     * Lack of resource.
     */
    public static final int RES_NOT_ENOUGH_CODE = -2;

    /**
     * Module name.
     */
    public static final String MODULE_NAME = "Resmanagement";

    public static final String RESPONSE_CONTENT = "responseContent";

    public static final String STATUS_CODE = "statusCode";

    /**
     * Format Time
     */
    public static final String DATE_FORMATE = "yyyy-MM-dd HH:mm:ss";

    public static final String DATE_UTC_FORMATE = "yyyy-MM-dd'T'HH:mm:ss'Z'";

    public static final String UTC_FORMATE = "UTC";

    public static final String DATE_DAY_FORMATE = "yyyy-MM-dd 00:00:00";

    /**
     * IAM
     */

    public static final String HTTP_CONTENT_TYPE = "Content-Type";

    public static final String HTTP_CONTENT_TYPE_VALUE = "application/json;charset=UTF-8";

    public static final String X_TENANT_ID = "X-Tenant-Id";

    public static final String IAM_TOKEN = "x-auth-token";

    public static final String IAM_AUTH_TOKEN = "X-Auth-Token";

    public static final String IAM_USER_ID = "X-User-Id";

    public static final String IAM_USER_NAME = "X-User-Name";

    public static final String IAM_DOMAIN_NAME = "X-Domain-Name";

    public static final String HEADER_SUBJECT_TOKEN = "X-Subject-Token";

    public static final int REPEAT_REG_TIME = 60 * 1000;

    public static final String CONF = "config.properties";

    public static final String HOST = "host_url";

    public static final String PORT = "port";

    public static final String CLOUD_OWNER = "cloud-owner";

    public static final String CLOUD_REGION_ID = "cloud-region-id";

    public static final String TENANT_ID = "tenant-id";

    public static final String GLOBAL_CUSTOMER_ID = "global-customer-id";

    public static final String SERVICE_TYPE = "service-type";
    
    public static final int HTTP_BAD_REQUEST = 400;
    
    public static final int HTTP_CREATED = 201;

    private Constant() {
        // private constants
    }
}