正在查看: bbinstant v6.24.0 应用的 Constants.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: bbinstant v6.24.0 应用的 Constants.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.amazonaws.services.s3.internal;
import com.amazonaws.SDKGlobalConfiguration;
import com.amazonaws.logging.Log;
import com.amazonaws.logging.LogFactory;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.SSEAlgorithm;
public class Constants {
public static final int BUCKET_ACCESS_FORBIDDEN_STATUS_CODE = 403;
public static final int BUCKET_REDIRECT_STATUS_CODE = 301;
public static final String DEFAULT_ENCODING = "UTF-8";
public static final int DEFAULT_STREAM_BUFFER_SIZE = 131073;
public static final int FAILED_PRECONDITION_STATUS_CODE = 412;
public static final long GB = 1073741824;
public static final String HMAC_SHA1_ALGORITHM = "HmacSHA1";
public static final int KB = 1024;
public static final int MAXIMUM_UPLOAD_PARTS = 10000;
public static final int MB = 1048576;
public static final int NO_SUCH_BUCKET_STATUS_CODE = 404;
public static final String NULL_VERSION_ID = "null";
public static final String REQUESTER_PAYS = "requester";
public static final String S3_ACCELERATE_DUALSTACK_HOSTNAME = "s3-accelerate.dualstack.amazonaws.com";
public static final String S3_ACCELERATE_HOSTNAME = "s3-accelerate.amazonaws.com";
public static final String S3_DUALSTACK_QUALIFIER = "dualstack";
public static final String S3_EXTERNAL_1_HOSTNAME = "s3-external-1.amazonaws.com";
public static final String S3_HOSTNAME = "s3.amazonaws.com";
public static final String S3_SERVICE_DISPLAY_NAME = "Amazon S3";
public static final String URL_ENCODING = "url";
public static final String XML_NAMESPACE = "http://s3.amazonaws.com/doc/2006-03-01/";
private static Log log = LogFactory.getLog(AmazonS3Client.class);
public static final String SSE_AWS_KMS_ENCRYPTION_SCHEME = SSEAlgorithm.KMS.getAlgorithm();
public static Integer getS3StreamBufferSize() {
String property = System.getProperty(SDKGlobalConfiguration.DEFAULT_S3_STREAM_BUFFER_SIZE);
if (property == null) {
return null;
}
try {
return Integer.valueOf(property);
} catch (Exception unused) {
log.warn("Unable to parse buffer size override from value: " + property);
return null;
}
}
@Deprecated
public static int getStreamBufferSize() {
String property = System.getProperty(SDKGlobalConfiguration.DEFAULT_S3_STREAM_BUFFER_SIZE);
if (property != null) {
try {
return Integer.parseInt(property);
} catch (Exception unused) {
log.warn("Unable to parse buffer size override from value: " + property);
}
}
return 131073;
}
}