com.qingcloud.sdk.constants.QCConstant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qingcloud-sdk-java Show documentation
Show all versions of qingcloud-sdk-java Show documentation
青云为开发者提供软件开发包 SDK (Software Development Kit), 可以利用它对青云的资源进行查看、创建和操作,借此开发出更富创造力的产品。
The newest version!
// +-------------------------------------------------------------------------
// | Copyright (C) 2016 Yunify, Inc.
// +-------------------------------------------------------------------------
// | Licensed under the Apache License, Version 2.0 (the "License");
// | you may not use this work except in compliance with the License.
// | You may obtain a copy of the License in the LICENSE file, or 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 com.qingcloud.sdk.constants;
/** Created by */
public class QCConstant {
public static final String SDK_VERSION = "1.0";
public static final String SDK_NAME = "qingcloud-sdk-java";
public static final String PARAM_TYPE_QUERY = "query";
public static final String PARAM_KEY_REQUEST_METHOD = "RequestMethod";
public static final String PARAM_KEY_USER_AGENT = "User-Agent";
public static final String ENCODING_UTF8 = "UTF-8";
public static final String ENV_CONTEXT_KEY = "envContext";
public static final String REQUEST_METHOD_POST = "POST";
public static final int REQUEST_ERROR_CODE = 10000;
public static final String LOGGER_LEVEL = "ERROR";
public static final String LOGGER_ERROR = "ERROR";
public static final String LOGGER_WARNING = "WARNING";
public static final String LOGGER_INFO = "INFO";
public static final int HTTP_CLIENT_CONNECTION_TIMEOUT = 60; // SECONDS
public static final int HTTP_CLIENT_READ_TIMEOUT = 100; // SECONDS
public static final int HTTP_CLIENT_WRITE_TIMEOUT = 100; // SECONDS
public static final String QC_CODE_FIELD_NAME = "status_code";
public static final String QC_MESSAGE_FIELD_NAME = "message";
public static final String DEFAULT_HOST = "api.qingcloud.com";
public static final String DEFAULT_PROTOCOL = "https";
public static final String DEFAULT_URI = "iaas";
public static final String DEFAUL_PORT = "443";
public static final String DEFAULT_ZONE = "pek3b";
public static final String DEFAULT_API_LANG = "zh-cn";
public static final String INVALID_MONITOR_DATA = "NA";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy