| 程序包 | 说明 |
|---|---|
| com.qcloud.cos | |
| com.qcloud.cos.auth | |
| com.qcloud.cos.http | |
| com.qcloud.cos.model |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <X extends CosServiceRequest> |
COSClient.createRequest(String bucketName,
String key,
X originalRequest,
HttpMethodName httpMethod) |
URL |
COSClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method) |
URL |
COS.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethodName method)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
COSSigner.buildAuthorizationStr(HttpMethodName methodName,
String resouce_path,
COSCredentials cred,
Date expiredTime) |
String |
COSSigner.buildAuthorizationStr(HttpMethodName methodName,
String resouce_path,
Map<String,String> headerMap,
Map<String,String> paramMap,
COSCredentials cred,
Date expiredTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpMethodName |
CosHttpRequest.getHttpMethod() |
static HttpMethodName |
HttpMethodName.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpMethodName[] |
HttpMethodName.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CosHttpRequest.setHttpMethod(HttpMethodName httpMethod) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpMethodName |
GeneratePresignedUrlRequest.getMethod()
The HTTP method (GET, PUT, DELETE, HEAD) to be used in this request.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
GeneratePresignedUrlRequest.setMethod(HttpMethodName method)
Sets the HTTP method (GET, PUT, DELETE, HEAD) to be used in this request.
|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withMethod(HttpMethodName method)
Sets the HTTP method (GET, PUT, DELETE, HEAD) to be used in this request,
and returns this request object to enable additional method calls to be
chained together.
|
| 构造器和说明 |
|---|
GeneratePresignedUrlRequest(String bucketName,
String key,
HttpMethodName method)
Creates a new request for generating a pre-signed URL that can be used as
part of an HTTP request to access the specified COS resource.
|
Copyright © 2017. All rights reserved.