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.
16 package org.openo.baseservice.roa.util.restclient;
19 * Constants for ReST client.<br/>
24 * @version 28-May-2016
26 public class RestfulClientConst {
28 /** -- json Ecode -- **/
29 public static final String APPLICATION_FORM_JSON_EBCIDED = "application/json";
34 public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded; charset=UTF-8";
36 public static final String ENCODING = "UTF-8";
38 public static final String SERVER_KEY_NAME = "defaultServer";
40 public static final String HOST_KEY_NAME = "host";
42 public static final String PORT_KEY_NAME = "port";
44 public static final String CONN_TIMEOUT_KEY_NAME = "ConnectTimeout";
46 public static final String THREAD_KEY_NAME = "thread";
48 public static final String IDLE_TIMEOUT_KEY_NAME = "idletimeout";
50 public static final String TIMEOUT_KEY_NAME = "timeout";
52 public static final String MAX_CONN_PER_ADDR_KEY_NAME = "maxConnectionPerAddr";
54 public static final String REQUEST_ID = "x-request-id";
56 public static final String MAX_RESPONSE_HEADER_SIZE = "responseHeaderSize";
58 public static final String MAX_REQUEST_HEADER_SIZE = "requestHeaderSize";
60 private RestfulClientConst() {