CommonLibrary(util/rest-client) code upload.
[vfc/nfvo/wfengine.git] / rest-client / src / main / java / org / openo / baseservice / roa / util / restclient / RestfulClientConst.java
1 /*
2  * Copyright (c) 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.roa.util.restclient;
17
18 /**
19  * Constants for ReST client.<br/>
20  * <p>
21  * </p>
22  * 
23  * @author
24  * @version SDNO 0.5 28-May-2016
25  */
26 public class RestfulClientConst {
27
28     /** -- json Ecode -- **/
29     public static final String APPLICATION_FORM_JSON_EBCIDED = "application/json";
30
31     /**
32      * urlencode
33      */
34     public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded; charset=UTF-8";
35
36     public static final String ENCODING = "UTF-8";
37
38     public static final String SERVER_KEY_NAME = "defaulServer";
39
40     public static final String CALLED_SERVICE_NAME = "serviceName";
41
42     public static final String HOST_KEY_NAME = "host";
43
44     public static final String PORT_KEY_NAME = "port";
45
46     public static final String CONN_TIMEOUT_KEY_NAME = "ConnectTimeout";
47
48     public static final String THREAD_KEY_NAME = "thread";
49
50     public static final String IDLE_TIMEOUT_KEY_NAME = "idletimeout";
51
52     public static final String TIMEOUT_KEY_NAME = "timeout";
53
54     public static final String MAX_CONN_PER_ADDR_KEY_NAME = "maxConnectionPerAddr";
55
56     public static final String REQUEST_ID = "x-request-id";
57
58     public static final String MAX_RESPONSE_HEADER_SIZE = "responseHeaderSize";
59
60     public static final String MAX_REQUEST_HEADER_SIZE = "requestHeaderSize";
61
62     private RestfulClientConst() {
63
64     }
65 }