| 程序包 | 说明 |
|---|---|
| com.qcloud.cos | |
| com.qcloud.cos.model |
| 限定符和类型 | 方法和说明 |
|---|---|
URL |
COS.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
URL |
COSClient.generatePresignedUrl(GeneratePresignedUrlRequest req) |
URL |
COS.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest,
Boolean signHost)
Returns a pre-signed URL for accessing COS resource. you can specify the expiration time.
|
URL |
COSClient.generatePresignedUrl(GeneratePresignedUrlRequest req,
Boolean signHost) |
| 限定符和类型 | 方法和说明 |
|---|---|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withBucketName(String bucketName)
Sets the name of the bucket involved in this request, and returns this
request object to enable additional method calls to be chained together.
|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withContentMd5(String contentMd5)
Sets the expected content-md5 header of the request and returns this
object, for method chaining.
|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withContentType(String contentType)
Sets the expected content-type of the request and returns
this object, for method chaining.
|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withExpiration(Date expiration)
Sets the expiration date at which point the new pre-signed URL will no
longer be accepted by COS, and returns this request object to
enable additional method calls to be chained together.
|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withKey(String key)
Sets the key of the object involved in this request, and returns this
request object to enable additional method calls to be chained together.
|
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 |
GeneratePresignedUrlRequest.withResponseHeaders(ResponseHeaderOverrides responseHeaders)
Sets the headers to be overridden in the service response and returns
this object, for method chaining.
|
GeneratePresignedUrlRequest |
GeneratePresignedUrlRequest.withVersionId(String versionId)
Sets the version ID of the object, only present if versioning has
been enabled for the bucket.
|
Copyright © 2022. All rights reserved.