2 * Copyright 2016 Huawei Technologies Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.common.restclient;
20 * Constants for ReST client.<br/>
25 * @version 28-May-2016
27 public class RestfulClientConst {
29 /** -- json Ecode -- **/
30 public static final String APPLICATION_FORM_JSON_EBCIDED = "application/json";
35 public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded; charset=UTF-8";
37 public static final String ENCODING = "UTF-8";
39 public static final String SERVER_KEY_NAME = "defaultServer";
41 public static final String HOST_KEY_NAME = "host";
43 public static final String PORT_KEY_NAME = "port";
45 public static final String CONN_TIMEOUT_KEY_NAME = "ConnectTimeout";
47 public static final String THREAD_KEY_NAME = "thread";
49 public static final String IDLE_TIMEOUT_KEY_NAME = "idletimeout";
51 public static final String TIMEOUT_KEY_NAME = "timeout";
53 public static final String MAX_CONN_PER_ADDR_KEY_NAME = "maxConnectionPerAddr";
55 public static final String REQUEST_ID = "x-request-id";
57 public static final String MAX_RESPONSE_HEADER_SIZE = "responseHeaderSize";
59 public static final String MAX_REQUEST_HEADER_SIZE = "requestHeaderSize";
61 private RestfulClientConst() {