add the logic for the register service CBB to call the msb
[vfc/nfvo/wfengine.git] / common-util / src / main / java / org / openo / baseservice / bus / util / BusConstant.java
1 /*
2  * Copyright 2016 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 package org.openo.baseservice.bus.util; 
17
18 /**
19  * <p>
20  * An class which holds the all the constant values for the Bus register CBB.
21  * </p>
22  * <br/>
23  * 
24  * @author
25  * @version
26  */
27 public final class BusConstant {  
28
29     public static final String JSON = "json";
30
31     public static final String BUS_CONFIGURE_FILE = "/etc/microservice.ini";
32
33     public static final String BUS_SERVICE_URL = "/openoapi/microservices/v1/services";
34
35     public static final String BUS_ADDRESS_KEY = "msb.address";
36
37     public static final String APPLICATION_JSON_HEADER = "application/json";
38
39     public static final String CREATE_OR_UPDATE = "createOrUpdate";
40
41     public static final String MICROSERVICE_DEFAULT = "msb.openo.org:80";
42
43     public static final String MICROSERVICE_PATH = "/etc/microservice";
44
45     public static final String POST_METHOD = "POST";
46
47     public static final String HTTP_HEAD = "http://";
48 }