com.qiniu.api.config.Config Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Qiniu Resource (Cloud) Storage SDK demo for Java
package com.qiniu.api.config;
/**
* The Config class is a global configuration file for the sdk, used for serve
* side only.
*/
public class Config {
public static final String CHARSET = "utf-8";
/**本地检测不通过、程序抛异常,设置 CallRet 的 statusCode 为此错误码*/
public static final int ERROR_CODE = 0;
public static final String VERSION = "6.1.5";
/**
* You can get your accesskey from https://dev.qiniutek.com
*/
public static String ACCESS_KEY = "";
/**
* You can get your accesskey from https://dev.qiniutek.com
*/
public static String SECRET_KEY = "";
public static String RS_HOST = "http://rs.qbox.me";
public static String UP_HOST = "http://up.qiniu.com";
public static String RSF_HOST = "http://rsf.qbox.me";
/**
* HTTP连接超时的时间毫秒(ms)
* Determines the timeout in milliseconds until a connection is established.
* A timeout value of zero is interpreted as an infinite timeout.
*
* Please note this parameter can only be applied to connections that
* are bound to a particular local address.
*/
public static int CONNECTION_TIMEOUT = 30 * 1000;
/**
* 读取response超时的时间毫秒(ms)
* Defines the socket timeout (SO_TIMEOUT
) in milliseconds,
* which is the timeout for waiting for data or, put differently,
* a maximum period inactivity between two consecutive data packets).
* A timeout value of zero is interpreted as an infinite timeout.
* @see java.net.SocketOptions#SO_TIMEOUT
*/
public static int SO_TIMEOUT = 30 * 1000;
}