public class CosXmlServiceConfig
extends java.lang.Object
implements android.os.Parcelable
限定符和类型 | 类和说明 |
---|---|
static class |
CosXmlServiceConfig.Builder
SDK服务配置构造器
用于构造 CosXmlServiceConfig |
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ACCELERATE_ENDPOINT_SUFFIX |
static java.lang.String |
ACCELERATE_HOST_FORMAT |
static java.lang.String |
CI_HOST_FORMAT |
static java.lang.String |
CI_REGION_HOST_FORMAT |
static android.os.Parcelable.Creator<CosXmlServiceConfig> |
CREATOR |
static java.lang.String |
DEFAULT_HOST_FORMAT |
static java.lang.String |
DEFAULT_USER_AGENT
The default user agent header for cos android sdk clients.
|
static java.lang.String |
HTTP_PROTOCOL
The default protocol to use when connecting to cos Services.
|
static java.lang.String |
HTTPS_PROTOCOL |
static java.lang.String |
PATH_STYLE_HOST_FORMAT |
static java.lang.String |
PIC_HOST_FORMAT |
构造器和说明 |
---|
CosXmlServiceConfig(CosXmlServiceConfig.Builder builder) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
java.lang.String |
getAppid()
获取cos appid
|
java.lang.String |
getBucket(java.lang.String bucket)
获取存储桶全称
|
java.lang.String |
getBucket(java.lang.String bucket,
java.lang.String appid)
获取存储桶全称
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getCommonHeaders() |
int |
getConnectionTimeout() |
java.lang.String |
getDefaultRequestHost(java.lang.String region,
java.lang.String bucket) |
java.lang.String |
getDefaultRequestHost(java.lang.String region,
java.lang.String bucket,
java.lang.String appid)
已过时。
|
int |
getDownloadMaxThreadCount() |
java.lang.String |
getEndpointSuffix()
已过时。
|
java.lang.String |
getEndpointSuffix(java.lang.String region,
boolean isSupportAccelerate)
已过时。
|
java.util.concurrent.Executor |
getExecutor() |
java.lang.String |
getHeaderHost(java.lang.String region,
java.lang.String bucket) |
java.lang.String |
getHost(java.lang.String bucket,
boolean isSupportAccelerate)
已过时。
|
java.lang.String |
getHost(java.lang.String bucket,
java.lang.String region,
boolean isSupportAccelerate)
已过时。
|
java.lang.String |
getHost(java.lang.String bucket,
java.lang.String region,
boolean isSupportAccelerate,
boolean isHeader)
已过时。
|
java.lang.String |
getHost(java.lang.String bucket,
java.lang.String region,
java.lang.String appId,
boolean isSupportAccelerate)
已过时。
|
java.lang.String |
getHost(java.lang.String bucket,
java.lang.String region,
java.lang.String appId,
boolean isSupportAccelerate,
boolean isHeader)
已过时。
|
java.util.Set<java.lang.String> |
getNoSignHeaders()
获取不签名header
|
java.util.concurrent.Executor |
getObserveExecutor() |
int |
getPort() |
java.lang.String |
getProtocol()
获取协议
|
QCloudHttpRetryHandler |
getQCloudHttpRetryHandler() |
java.lang.String |
getRegion()
获取区域
|
java.lang.String |
getRequestHost(java.lang.String bucket,
boolean accelerate)
获取请求host
|
java.lang.String |
getRequestHost(java.lang.String region,
java.lang.String hostFormat)
获取请求host
|
java.lang.String |
getRequestHost(java.lang.String region,
java.lang.String bucket,
boolean accelerate)
获取请求host
|
java.lang.String |
getRequestHost(java.lang.String region,
java.lang.String bucket,
java.lang.String hostFormat)
获取请求host
|
RetryStrategy |
getRetryStrategy() |
int |
getSocketTimeout() |
int |
getUploadMaxThreadCount() |
java.lang.String |
getUrlPath(java.lang.String bucket,
java.lang.String cosPath)
获取url path,根据bucketInPath决定bucket是否在path中
|
java.lang.String |
getUserAgent()
获取UserAgent
|
boolean |
isDebuggable() |
boolean |
isDnsCache() |
boolean |
isEnableQuic() |
boolean |
isSignInUrl() |
boolean |
isTransferThreadControl() |
CosXmlServiceConfig.Builder |
newBuilder() |
void |
writeToParcel(android.os.Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public static final java.lang.String HTTP_PROTOCOL
public static final java.lang.String HTTPS_PROTOCOL
public static final java.lang.String ACCELERATE_ENDPOINT_SUFFIX
public static final java.lang.String DEFAULT_HOST_FORMAT
public static final java.lang.String ACCELERATE_HOST_FORMAT
public static final java.lang.String PATH_STYLE_HOST_FORMAT
public static final java.lang.String CI_HOST_FORMAT
public static final java.lang.String CI_REGION_HOST_FORMAT
public static final java.lang.String PIC_HOST_FORMAT
public static final java.lang.String DEFAULT_USER_AGENT
public static final android.os.Parcelable.Creator<CosXmlServiceConfig> CREATOR
public CosXmlServiceConfig(CosXmlServiceConfig.Builder builder)
public CosXmlServiceConfig.Builder newBuilder()
public java.lang.String getProtocol()
public java.lang.String getUserAgent()
public java.lang.String getRegion()
public java.lang.String getBucket(java.lang.String bucket)
bucket
- 存储桶名public java.lang.String getBucket(java.lang.String bucket, java.lang.String appid)
bucket
- 存储桶名appid
- cos appidpublic java.util.Set<java.lang.String> getNoSignHeaders()
public java.lang.String getAppid()
public java.lang.String getRequestHost(java.lang.String bucket, boolean accelerate)
bucket
- 存储桶accelerate
- 是否使用全球加速域名public java.lang.String getRequestHost(java.lang.String region, java.lang.String bucket, boolean accelerate)
region
- 区域bucket
- 存储桶accelerate
- 是否使用全球加速域名public java.lang.String getRequestHost(java.lang.String region, java.lang.String bucket, java.lang.String hostFormat)
region
- 区域bucket
- 存储桶hostFormat
- HOST 格式,支持通配符public java.lang.String getRequestHost(java.lang.String region, java.lang.String hostFormat)
region
- 区域hostFormat
- HOST 格式,支持通配符public java.lang.String getHeaderHost(java.lang.String region, java.lang.String bucket)
public boolean isSignInUrl()
@Deprecated public java.lang.String getDefaultRequestHost(java.lang.String region, java.lang.String bucket, java.lang.String appid)
region
- 区域bucket
- 存储桶appid
- appidpublic java.lang.String getDefaultRequestHost(java.lang.String region, java.lang.String bucket)
public int getPort()
@Deprecated public java.lang.String getHost(java.lang.String bucket, boolean isSupportAccelerate)
@Deprecated public java.lang.String getHost(java.lang.String bucket, java.lang.String region, boolean isSupportAccelerate)
@Deprecated public java.lang.String getHost(java.lang.String bucket, java.lang.String region, boolean isSupportAccelerate, boolean isHeader)
@Deprecated public java.lang.String getHost(java.lang.String bucket, java.lang.String region, java.lang.String appId, boolean isSupportAccelerate, boolean isHeader)
@Deprecated public java.lang.String getHost(java.lang.String bucket, java.lang.String region, java.lang.String appId, boolean isSupportAccelerate)
public boolean isDnsCache()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getCommonHeaders()
public boolean isTransferThreadControl()
public int getUploadMaxThreadCount()
public int getDownloadMaxThreadCount()
@Deprecated public java.lang.String getEndpointSuffix()
@Deprecated public java.lang.String getEndpointSuffix(java.lang.String region, boolean isSupportAccelerate)
public java.lang.String getUrlPath(java.lang.String bucket, java.lang.String cosPath)
bucket
- 存储桶名cosPath
- 路径public boolean isDebuggable()
public int getSocketTimeout()
public int getConnectionTimeout()
public RetryStrategy getRetryStrategy()
public QCloudHttpRetryHandler getQCloudHttpRetryHandler()
public java.util.concurrent.Executor getExecutor()
public java.util.concurrent.Executor getObserveExecutor()
public boolean isEnableQuic()
public int describeContents()
android.os.Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
在接口中 android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
android.os.Parcelable
writeToParcel
在接口中 android.os.Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.