All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qiniu.sdk.UpYunConfig Maven / Gradle / Ivy

package com.qiniu.sdk;

public class UpYunConfig implements Cloneable {

    /**
     * 默认的编码格式
     */
    public static final String UTF8 = "UTF-8";
    public static final String AUTHORIZATION = "Authorization";
    public static final String DATE = "Date";
    public static final String METHOD_HEAD = "HEAD";
    public static final String METHOD_GET = "GET";
    public static final String apiDomain = "v0.api.upyun.com";

    public static final String X_UPYUN_FILE_TYPE = "x-upyun-file-type";
    public static final String X_UPYUN_FILE_SIZE = "x-upyun-file-size";
    public static final String X_UPYUN_FILE_DATE = "x-upyun-file-date";

    // 默认的超时时间:30秒
    public static int DEFAULT_CONNECT_TIMEOUT = 30 * 1000;
    public static int DEFAULT_READ_TIMEOUT = 30 * 1000;
    public static int DEFAULT_WRITE_TIMEOUT = 30 * 1000;

    public int connectTimeout = DEFAULT_CONNECT_TIMEOUT;
    public int readTimeout = DEFAULT_READ_TIMEOUT;
    public int writeTimeout = DEFAULT_WRITE_TIMEOUT;

    public UpYunConfig() {}

    @Override
    public UpYunConfig clone() throws CloneNotSupportedException {
        return (UpYunConfig) super.clone();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy